export interface BuildProgress { phase: string; filesDone: number; filesTotal: number; startedAt: string; updatedAt: string; pid: number; } export declare function buildProgressPath(root: string): string; /** Open the sink for a build of `root`. Returns the function that closes it and removes the record. */ export declare function openBuildProgress(root: string): () => void; /** A new phase. `filesTotal` starts a counted phase (parsing). */ export declare function reportBuildPhase(phase: string, filesTotal?: number): void; /** One more file finished in the counted phase. */ export declare function reportFileDone(): void; /** The build in progress for `root`, or undefined when none is (no record, a dead pid, or a stale record). */ export declare function readBuildProgress(root: string, now?: number): BuildProgress | undefined; /** `indexing 45% (1,310/2,900 files)` while files are counted, else `indexing: `. */ export declare function formatBuildProgress(p: BuildProgress): string; //# sourceMappingURL=build-progress.d.ts.map