import { ClearTextHeader } from "./cleartext_header"; export declare abstract class HybridDecryption { private _asymmetricDecryptionKey; set asymmetricDecryptionKey(value: Uint8Array); get asymmetricDecryptionKey(): Uint8Array; constructor(asymmetricDecryptionKey: Uint8Array); abstract renewKey(userDecryptionKey: Uint8Array): void; abstract destroyInstance(): void; /** * * @param asymmetricHeader asymmetric encrypted data */ abstract decryptHybridHeader(asymmetricHeader: Uint8Array): ClearTextHeader; /** * Decrypts a hybrid block * * @param symmetricKey key used in symmetric cipher * @param encryptedBytes ciphertext * @param uid uid used as additional data * @param blockNumber * @returns the cleartext if everything succeeded */ abstract decryptHybridBlock(symmetricKey: Uint8Array, encryptedBytes: Uint8Array, uid: Uint8Array | undefined, blockNumber: number | undefined): Uint8Array; /** * Return the size of the header * * @param encryptedBytes the hybrid encrypted bytes */ abstract getHeaderSize(encryptedBytes: Uint8Array): number; /** * Hybrid decrypt wrapper: ABE decrypt then AES decrypt * * @param uid integrity parameter used when encrypting * @param encryptedData * @returns a list of cleartext values */ abstract decrypt(encryptedData: Uint8Array): Uint8Array; } export interface DecryptionWorkerMessage { name: "INIT" | "DESTROY" | "DECRYPT" | "SUCCESS" | "ERROR"; isGpswImplementation: boolean; error?: string; value?: any; } //# sourceMappingURL=decryption.d.ts.map