export declare const SYMMETRIC_VERSION = 1; export declare const ECIES_VERSION = 2; export declare const SYMMETRIC_HEADER_SIZE = 17; export declare const EPHEMERAL_PUBKEY_SIZE = 33; export declare const ECIES_HEADER_SIZE: number; export declare class EncryptionHeader { version: number; nonce: Uint8Array; ephemeralPub: Uint8Array; constructor(version: number, nonce: Uint8Array, ephemeralPub?: Uint8Array); size(): number; toBytes(): Uint8Array; } export declare function parseEncryptionHeader(data: Uint8Array): EncryptionHeader; export declare function cryptAt(key: Uint8Array, nonce: Uint8Array, offset: number, data: Uint8Array): void; export declare function normalizePubKey(input: Uint8Array | string): Uint8Array; export declare function normalizePrivKey(input: Uint8Array | string): Uint8Array; export declare function deriveEciesEncryptKey(recipientPub: Uint8Array | string): { key: Uint8Array; ephemeralPub: Uint8Array; }; export declare function deriveEciesDecryptKey(recipientPriv: Uint8Array | string, ephemeralPub: Uint8Array): Uint8Array; export declare function newSymmetricHeader(): EncryptionHeader; export declare function newEciesHeader(recipientPub: Uint8Array | string): { header: EncryptionHeader; key: Uint8Array; }; export declare function decryptFile(key: Uint8Array, encrypted: Uint8Array): Uint8Array; export declare function decryptFragmentData(key: Uint8Array, header: EncryptionHeader, fragmentData: Uint8Array, isFirstFragment: boolean, dataOffset: number): { plaintext: Uint8Array; newOffset: number; }; export declare function resolveDecryptionKey(symmetricKey: Uint8Array | undefined, privateKey: Uint8Array | string | undefined, header: EncryptionHeader): Uint8Array; //# sourceMappingURL=encryption.d.ts.map