import type { IDatabaseAdapter } from '../../database/core/interfaces.js'; import type { ProgressContext } from '../../utils/progress-utils.js'; import type { VectorSearchManager } from './manager.js'; export declare const setTimeoutFn: typeof setTimeout; /** * Rebuild the vector index incrementally to avoid blocking the event loop or database. * This function handles the orchestration, while relying on the manager instance for * generating embeddings and upserting into the database. */ export declare function rebuildIndex(manager: VectorSearchManager, dbAdapter: IDatabaseAdapter, progress?: ProgressContext, options?: { force?: boolean; batchSize?: number; pageSize?: number; }): Promise<{ success: boolean; indexed: number; failed: number; firstError: string | null; }>; //# sourceMappingURL=rebuild.d.ts.map