export interface PostinstallCleanupSummary {
    scanned: number;
    staleLockfilesRemoved: number;
    staleDaemonsKilled: number;
}
export interface PostinstallCleanupOptions {
    currentVersion?: string | null;
    dryRun?: boolean;
    now?: number;
    silent?: boolean;
    stateRoot?: string;
    isProcessAliveFn?: (pid: number) => boolean;
    killProcessFn?: (pid: number, signal: NodeJS.Signals | 0) => void;
    sleepFn?: (ms: number) => Promise<void>;
}
export declare function runPostinstallCleanup(options?: PostinstallCleanupOptions): Promise<PostinstallCleanupSummary>;
