import { type ToolDigest } from './tdigest.js';
/**
 * Load a digest from disk.
 * Returns an empty digest if the file doesn't exist or is corrupt.
 */
export declare function loadDigest(projectRoot: string, toolName: string): Promise<ToolDigest>;
/**
 * Persist a digest to disk atomically.
 */
export declare function saveDigest(projectRoot: string, toolName: string, digest: ToolDigest): Promise<void>;
/**
 * Record a new sample for a tool, merging into the persisted digest.
 * Loads the existing digest, merges the sample, and saves back atomically.
 */
export declare function recordSample(projectRoot: string, toolName: string, sample: number): Promise<void>;
/**
 * Get the P95 latency for a tool from its persisted digest.
 * Returns 0 if no data is available.
 */
export declare function getToolP95(projectRoot: string, toolName: string): Promise<number>;
//# sourceMappingURL=digest-store.d.ts.map