export interface ProgressCheckResult { alive: boolean; reasons: string[]; backgroundTaskCount: number; } export interface ProgressCheckOptions { pid: number; cliHomeDir?: string | null; cwd?: string | null; freshMs: number; } export declare function encodeProjectDirName(cwd: string): string; export declare function newestMtimeUnder(rootDir: string | null | undefined, { maxEntries, maxDepth }?: { maxEntries?: number; maxDepth?: number; }): Promise; export declare function checkSessionProgress(opts: ProgressCheckOptions, lastOutputAtMs: number | null | undefined): Promise;