/** Grace allowed to the launcher's graceful `appExit` before the process is forced out. */ export declare const EXIT_FALLBACK_MS = 2000; export interface LauncherExitOptions { /** Resolves the host's graceful shutdown at exit time (it may be registered later). */ appExit?: () => ((code: number) => void) | undefined; /** Bound on the graceful drain; the TTY is already handed back when it fires. */ fallbackMs?: number; stdin?: NodeJS.ReadStream; /** Process exit, injectable for tests. */ force?: (code: number) => void; /** Timer factory, injectable for tests. */ schedule?: (handler: () => void, ms: number) => { unref?: () => void; }; } /** * Build the one function every launcher exit path calls. Esc from the picker, * a replaced window, `/exit`, and the error paths all funnel through it. */ export declare function createLauncherExit(options?: LauncherExitOptions): (code: number) => void;