/** * Encrypts a message using nacl.secretbox with TYPE_0 format: * [type(1 byte), iv(24 bytes), sealed(...)] -> Hex encoded. */ interface EncryptParams { symKey: string; message: string; iv?: string; randomBytes: (size: number) => Uint8Array; } export declare function encrypt(params: EncryptParams): string; /** * Decrypts a hex-encoded message using nacl.secretbox with TYPE_0 format. * Expects [type(1 byte), iv(24 bytes), sealed(...)]. */ interface DecryptParams { symKey: string; encoded: string; } export declare function decrypt(params: DecryptParams): string; export {}; //# sourceMappingURL=index.d.ts.map