export interface ProcessCleanupReport {
    daemonsKilled: number;
    lockfilesRemoved: number;
    errors: string[];
    dryRun: boolean;
}
export interface StopAllNexusProcessesOptions {
    dryRun?: boolean;
    stateRoot?: string;
    isProcessAliveFn?: (pid: number) => boolean;
    killProcessTreeFn?: (pid: number) => void;
    listProcessPidsFn?: () => NexusProcessCandidate[];
    sleepFn?: (ms: number) => Promise<void>;
}
export interface NexusProcessCandidate {
    pid: number;
    command: string;
}
export declare function killProcessTree(pid: number): void;
export declare function listNexusProcessPids(): NexusProcessCandidate[];
export declare function stopAllNexusProcesses(options?: StopAllNexusProcessesOptions): Promise<ProcessCleanupReport>;
