import { I as IStorage, C as CofheInputConfig, a as CofheConfig, b as CofheClient, E as EncryptableItem } from './clientTypes-BJbFeeno.cjs'; import 'viem'; import './types-C07FK-cL.cjs'; import 'zod'; import './permit-DnVMDT5h.cjs'; import 'zustand/vanilla'; declare function createSsrStorage(): IStorage; /** * Terminate the worker */ declare function terminateWorker(): void; /** * Check if workers are available */ declare function areWorkersAvailable(): boolean; declare const hasDOM: boolean; /** * Creates a CoFHE configuration for web with IndexedDB storage as default * @param config - The CoFHE input configuration (fheKeyStorage will default to IndexedDB if not provided) * @returns The CoFHE configuration with web defaults applied */ declare function createCofheConfig(config: CofheInputConfig): CofheConfig; /** * Creates a CoFHE client instance for web with TFHE automatically configured * TFHE will be initialized automatically on first encryption - no manual setup required * Workers are automatically enabled if available (can be disabled via config.useWorkers) * @param config - The CoFHE configuration (use createCofheConfig to create with web defaults) * @returns The CoFHE client instance */ declare function createCofheClient(config: TConfig): CofheClient; /** * Test helper: Create a client with custom worker function (for testing fallback behavior) * @internal - Only for testing purposes */ declare function createCofheClientWithCustomWorker(config: CofheConfig, customZkProveWorkerFn: (fheKeyHex: string, crsHex: string, items: EncryptableItem[], metadata: Uint8Array) => Promise): CofheClient; export { areWorkersAvailable, createCofheClient, createCofheClientWithCustomWorker, createCofheConfig, createSsrStorage, hasDOM, terminateWorker };