type Probe = { key: string; replay(): unknown; value: unknown; }; export type CompilerHostProbeSnapshot = { probes: readonly Probe[]; stableDuringCapture: boolean; }; export interface CompilerFilesystemHost { directoryExists?(path: string): boolean; fileExists(path: string): boolean; getDirectories?(path: string): string[]; readDirectory?(path: string, extensions?: readonly string[], exclude?: readonly string[], include?: readonly string[], depth?: number): string[]; readFile(path: string): string | undefined; realpath?(path: string): string; } export interface CompilerHostTrackingOptions { afterRead?(path: string): boolean | void; readFileReplay?: 'always' | 'when-filesystem-metadata-stable'; } export declare function trackCompilerHost(host: Host, options?: CompilerHostTrackingOptions): { host: Host; snapshot(): CompilerHostProbeSnapshot; }; export declare function compilerHostProbesAreFresh(snapshot: CompilerHostProbeSnapshot): boolean; export {};