import type { RpcSessionRegistry } from "./session-registry.ts";
export interface DrainVerdicts {
    /** Settled sessions a handoff parks: the successor reopens each by its `sessionPath`. */
    readonly park: readonly string[];
    /**
     * Settled sessions whose transcript directory is gone. Nothing can reopen them by path, so the
     * drain ends them as `session_dir_removed` instead of handing out a dead path (senpi#2285).
     */
    readonly gone: readonly string[];
}
/**
 * One handoff-drain pass's decisions. Every session is judged on its own: a session whose activity
 * cannot be read cannot be proven busy, so it parks like any other (reported through `unreadable`)
 * and never strands the rest on a superseded generation. The pass adds no path resolution of its
 * own: the gone check only stats the directory of the path the registry already holds.
 */
export declare function selectDrainVerdicts(registry: Pick<RpcSessionRegistry, "list" | "peek">, inFlight: (sessionId: string) => boolean, unreadable: (sessionId: string, cause: unknown) => void): DrainVerdicts;
/** One drain pass for the host: logs what it skips, and `undefined` when the pass failed as a whole. */
export declare function readDrainVerdicts(registry: Pick<RpcSessionRegistry, "list" | "peek">, inFlight: (sessionId: string) => boolean): DrainVerdicts | undefined;
//# sourceMappingURL=session-drain.d.ts.map