export interface StaleCdkTmpdir { readonly path: string; readonly sizeBytes: number; readonly mtime: Date; } export interface FindOptions { /** Base tmpdir to scan. Defaults to os.tmpdir(); overridden by tests. */ readonly tmpdirPath?: string; /** Minimum age before a dir is reported. Defaults to 24h. */ readonly maxAgeMs?: number; } export interface CleanupResult { readonly removed: number; readonly failed: number; readonly bytesReclaimed: number; } export declare function findStaleCdkTmpdirs(options?: FindOptions): Promise; export declare function removeStaleCdkTmpdirs(dirs: readonly StaleCdkTmpdir[]): Promise; /** Find + remove in one call — the shape vitest teardown reapers consume. */ export declare function cleanupStaleCdkTmpdirs(options?: FindOptions): Promise; export declare function formatBytes(bytes: number): string;