import type { RunMeta } from './scheduling/routines.js';
export interface RoutineProcessCleanupOptions {
    runsDir?: string;
    alive?: (pid: number) => boolean;
    owns?: (meta: RunMeta) => Promise<boolean> | boolean;
    terminate?: (pid: number) => void;
}
/** Reap process groups whose durable run record is already terminal. */
export declare function reapTerminalRoutineProcesses(opts?: RoutineProcessCleanupOptions): Promise<number[]>;
