/** * WASM loader utilities for the vault module */ /** * Options for loading WASM module */ export interface WASMLoadOptions { /** URL to load WASM from */ url?: string; /** Use CDN for loading (jsDelivr) */ useCDN?: boolean; /** Package version for CDN loading */ version?: string; /** Timeout for loading in milliseconds */ timeout?: number; } /** * Load vault WASM module */ export declare function loadVaultWASM(options?: WASMLoadOptions): Promise; /** * Verify WASM module is valid */ export declare function verifyWASM(wasmBuffer: ArrayBuffer): Promise; /** * Get WASM module info */ export declare function getWASMInfo(wasmBuffer: ArrayBuffer): Promise<{ size: number; exports: string[]; imports: string[]; }>; /** * Cache for loaded WASM modules */ declare class WASMCache { private cache; set(key: string, buffer: ArrayBuffer): void; get(key: string): ArrayBuffer | undefined; has(key: string): boolean; clear(): void; remove(key: string): boolean; } /** * Global WASM cache instance */ export declare const wasmCache: WASMCache; /** * Load WASM with caching */ export declare function loadVaultWASMCached(cacheKey: string, options?: WASMLoadOptions): Promise; /** * Preload vault WASM module for faster initialization */ export declare function preloadVaultWASM(options?: WASMLoadOptions): Promise; export {}; //# sourceMappingURL=loader.d.ts.map