import { DazzleWasm } from './dazzle_wasm_bindings'; export interface VectorSearchHit { id: string; distance: number; } export declare class DazzleWeb { private constructor(); /** Load the WASM module and, if a snapshot exists in OPFS, restore it. */ static initialize(opts?: { opfsFileName?: string; }): Promise; private static get w(); static hash(key: string): DazzleWebHash; static vectorIndex(name: string): DazzleWebVectorIndex; /** Snapshot current state to OPFS. Call on app suspend, not per-write. */ static persist(): Promise; /** Wipe in-memory state AND the OPFS snapshot. */ static clearAll(): Promise; static get version(): string; /** Tests only. */ static debugReset(): void; } export declare class DazzleWebHash { private readonly w; readonly key: string; constructor(w: DazzleWasm, key: string); set(field: string, value: string): boolean; get(field: string): string | null; delete(field: string): boolean; exists(field: string): boolean; getAll(): Record; drop(): boolean; } export declare class DazzleWebVectorIndex { private readonly w; readonly name: string; constructor(w: DazzleWasm, name: string); create(opts: { dim: number; M?: number; efConstruction?: number; initialCapacity?: number; }): boolean; add(id: string, embedding: Float32Array): boolean; addBatch(items: Record): void; search(query: Float32Array, opts?: { topK?: number; ef?: number; }): VectorSearchHit[]; drop(): boolean; } //# sourceMappingURL=dazzle_web.d.ts.map