export type SessionsJsonMap<T> = Record<string, T>;
/**
 * Read JSON object from `sessions.json`. Missing file → `{}`.
 * Uses mtime/size cache when enabled.
 */
export declare function readSessionsJsonFile<T extends Record<string, unknown>>(storePath: string): Promise<SessionsJsonMap<T>>;
/**
 * Exclusive update: lock → read → mutate → atomic write (skipped when serialized unchanged) → unlock.
 */
export declare function withSessionsJsonLock<T>(storePath: string, fn: (store: SessionsJsonMap<Record<string, unknown>>) => Promise<T>): Promise<T>;
export { invalidateSessionsJsonCache, getSessionsJsonWriteStats, resetSessionsJsonCacheForTest } from './sessions-json-cache.js';
