import type { ProjectContext } from './context.js';
import type { Logger } from './logger.js';
export interface OrphanCleanupResult {
    /** Number of session records removed from state.json */
    cleaned: number;
    /** Number of orphan processes killed */
    killed: number;
}
/**
 * Scan state.json for ACP sessions on pipeline slots (worker-*). If the recorded
 * pid is still alive, kill the process (+ its descendants) — the new sps tick
 * instance cannot reattach to a stdio-connected shim, so any survivor is an
 * orphan. Clear all worker-* session records regardless of pid liveness.
 *
 * Preserves harness-mode sessions (slot prefix `session-`).
 */
export declare function cleanupOrphanAcpSessions(ctx: ProjectContext, log: Logger): Promise<OrphanCleanupResult>;
//# sourceMappingURL=sessionCleanup.d.ts.map