import type { VectorIndexHybridQuery, VectorIndexMutation, VectorIndexPresetStateMark, VectorIndexReplaceUpsert } from './worker_protocol'; import type { DreamNeighborQuery, MemoryVectorIndexManifest } from '../../contracts/vector_index'; export declare class LivingMemoryVectorIndexWorkerClient { private readonly onFailure?; private readonly onWarning?; private readonly worker; private readonly pending; private readonly exitPromise; private resolveExit; private nextRequestId; private failure; private disposeRequested; private disposePromise; constructor(workerPath?: string, onFailure?: ((error: Error) => void) | undefined, onWarning?: ((error: Error) => void) | undefined); open(databaseDirectory: string, previousDatabaseDirectory: string): Promise; openCandidate(databaseDirectory: string): Promise; inspect(): Promise; upgradeSchema(): Promise<{ schemaVersion: number; }>; queryHybrid(query: VectorIndexHybridQuery): Promise; readVectorSnapshot(presetId: string, memoryIds: string[]): Promise; buildDreamAnnIndex(): Promise<{ built: boolean; }>; queryDreamNeighbors(queries: DreamNeighborQuery[], signal?: AbortSignal): Promise; applyMutation(mutation: VectorIndexMutation): Promise<{ indexedCount: number; }>; clearPreset(presetId: string): Promise<{ deletedCount: number; }>; readInventoryPage(presetId: string | null, afterMemoryId: string | null, limit: number): Promise; markPresetState(status: VectorIndexPresetStateMark): Promise; openRebuildDatabase(databaseDirectory: string, manifest: MemoryVectorIndexManifest): Promise; appendRebuildBatch(presetId: string, upserts: VectorIndexReplaceUpsert[]): Promise<{ indexedCount: number; }>; validateAndCloseRebuildDatabase(expectedCount: number): Promise<{ indexedCount: number; }>; closeDatabase(): Promise<{ closed: true; }>; abortRebuild(): Promise; dispose(): Promise; private disposeWorker; private request; private sendRequest; private handleResponse; private fail; }