import type { EncryptConfig, EncryptResult, DecryptConfig } from './types'; export type { EncryptConfig, EncryptResult, DecryptConfig } from './types'; export type { DecryptResult, DecryptBinaryResult } from './types'; /** * Encrypt a string using the Emblem encryption service. * * If `options.address` or `options.tokenId` are not provided, they will be * resolved automatically from the authenticated vault info. * * @param data - The plaintext string to encrypt * @param options - Encryption configuration including auth config * @returns The encrypted ciphertext and data hash (needed for decryption) */ export declare function encrypt(data: string, options: EncryptConfig): Promise; /** * Encrypt binary data (Uint8Array) using the Emblem encryption service. * * The binary data is Base64-encoded with a marker prefix so that decryptBinary() * can distinguish it from plain text and decode it back to a Uint8Array. * * @param data - The binary data to encrypt * @param options - Encryption configuration including auth config * @returns The encrypted ciphertext and data hash (needed for decryption) */ export declare function encryptBinary(data: Uint8Array, options: EncryptConfig): Promise; /** * Decrypt ciphertext using the Emblem decryption service. * * If `options.address` or `options.tokenId` are not provided, they will be * resolved automatically from the authenticated vault info. * * If the decrypted string starts with the binary marker ("b64:"), the marker is * stripped and the raw Base64 string is returned. * * @param options - Decryption configuration including ciphertext and hash * @returns The decrypted plaintext string */ export declare function decrypt(options: DecryptConfig): Promise; /** * Decrypt ciphertext and return the result as a Uint8Array. * * If the decrypted data was originally encrypted with encryptBinary(), the * binary marker is detected and the Base64 payload is decoded back to bytes. * Otherwise the decrypted string is encoded as UTF-8 bytes as a fallback. * * @param options - Decryption configuration including ciphertext and hash * @returns The decrypted binary data as a Uint8Array */ export declare function decryptBinary(options: DecryptConfig): Promise; //# sourceMappingURL=index.d.ts.map