import { OnModuleInit } from "@nestjs/common";
import { ConfigService } from "@nestjs/config";
export interface EncryptedPayload {
    iv: string;
    authTag: string;
    ciphertext: string;
    v: 1;
}
export declare class EncryptionService implements OnModuleInit {
    private readonly config;
    private masterKey;
    constructor(config: ConfigService);
    onModuleInit(): void;
    encrypt(plaintext: string): EncryptedPayload;
    decrypt(payload: EncryptedPayload): string;
    encryptJson<T>(value: T): EncryptedPayload;
    decryptJson<T>(payload: EncryptedPayload): T;
}
