import type { CliPaths } from './paths';
import type { CliSessionIndexEntry } from '../types';
export interface CliIndex {
    version: 1;
    sessions: Record<string, CliSessionIndexEntry>;
}
export declare function readIndex(paths: CliPaths): CliIndex;
export declare function writeIndex(paths: CliPaths, index: CliIndex): void;
/** Upsert a single session entry and atomically persist. */
export declare function upsertSession(paths: CliPaths, entry: CliSessionIndexEntry): void;
//# sourceMappingURL=indexJson.d.ts.map