import { type BuildCodebaseOptions } from './build.js';
import type { CodebaseIndex } from './types.js';
/** @deprecated Use `openCodeIndexStore`; this monolithic cache remains for compatibility until the next major. */
export interface CachedCodebaseIndex extends CodebaseIndex {
    cacheVersion: string;
    cachedAt: string;
    fileHashes: Record<string, string>;
}
export declare function loadIndexCache(cachePath: string): Promise<CachedCodebaseIndex | undefined>;
export declare function saveIndexCache(index: CachedCodebaseIndex, cachePath: string): Promise<void>;
export declare function invalidateCache(cachePath: string): Promise<void>;
/**
 * @deprecated Use `openCodeIndexStore`. The compatibility helper no longer
 * writes `.occ-cache/` into the analyzed working tree by default.
 */
export declare function buildCodebaseIndexCached(options: BuildCodebaseOptions & {
    cachePath?: string;
}): Promise<CachedCodebaseIndex>;
