import type { SpaceConfig } from '../config/types.js'; import { type IndexSyncMode } from './run-sync.js'; import { getIndexSyncReason, INDEX_STALE_MS } from './sync.js'; export interface EnsureContentIndexOptions { preview?: boolean; /** Called when an automatic sync starts (missing, stale, or schema mismatch). */ onRebuild?: (message: string) => void; } export interface EnsureContentIndexResult { syncedAt: string | null; stale: boolean; rebuilt: boolean; syncMode?: IndexSyncMode; } /** * Ensures the local content index exists and is current (schema v4, synced within 24h, * and not invalidated by a committed write). Auto-sync: full rebuild when missing, schema * outdated, or fully invalidated; incremental when only stale or incrementally invalidated. */ export declare function ensureContentIndex(space: SpaceConfig, opts?: EnsureContentIndexOptions): Promise; export { getIndexSyncReason, INDEX_STALE_MS }; //# sourceMappingURL=require.d.ts.map