import type { SessionRegistrySession, TerminalSessionSignal } from "./registry-types.ts"; export declare const DEFAULT_SIGNAL: TerminalSessionSignal; /** * Escalation signal. On Windows there is no SIGKILL: Node maps any signal but 0 * to TerminateProcess, and the pty session's own kill path routes it through * `taskkill /T /F`, so the forced semantics hold on both platforms. */ export declare const FORCE_SIGNAL: TerminalSessionSignal; export declare function sessionIdPrefix(command: string): string; export declare function isTerminalSessionExited(session: SessionRegistrySession): boolean; export declare function stopTerminalSession(session: SessionRegistrySession): Promise; /** * Deliver the forced signal to a session that outlived its stop grace. Returns * `false` when the session exposes no way to signal it, so callers can skip a * pointless forced-grace wait instead of hanging on an unkillable stub. */ export declare function forceKillTerminalSession(session: SessionRegistrySession): Promise; export declare function waitForTerminalSessionExit(session: SessionRegistrySession, graceMs?: number): Promise; //# sourceMappingURL=registry-session.d.ts.map