import type { HexString } from '../binary.js'; import type { EncryptionScheme, EncryptResultOf, PlaintextOf, SupportedFheType } from '../encryption/encryption.js'; import type { BackoffConfig } from '../retry.js'; /** * Custom error class for attested decrypt operations. */ export declare class AttestedDecryptError extends Error { readonly cause?: unknown | undefined; constructor(message: string, cause?: unknown | undefined); } export type DecryptionAttestation = { handle: HexString; plaintext: PlaintextOf; covalidatorSignatures: Uint8Array[]; }; export type EncryptedDecryptionAttestation = { handle: HexString; encryptedPlaintext: EncryptResultOf; encryptedSignatures: Uint8Array[]; covalidatorSignatures: Uint8Array[]; }; export type AttestedDecryptor = (args: AttestedDecryptFnArgs) => Promise>; export type AttestedDecryptFnArgs = { /** The handle to decrypt */ handle: HexString; backoffConfig?: Partial; };