export interface SuppressTerminalStderrOptions { /** Redirect target path; defaults to today's jeopi log file, then /dev/null. */ redirectPath?: string; /** Bypass the macOS + same-terminal gate. Tests only. */ force?: boolean; } /** * Redirect fd 2 away from the terminal while the TUI owns the viewport. * Returns true when suppression is (already) active. No-op — returning * false — off macOS, when stderr does not target the stdout terminal, or * when the libc fd ops are unavailable. */ export declare function suppressTerminalStderr(options?: SuppressTerminalStderrOptions): boolean; /** * Re-point fd 2 at the saved terminal stderr. Safe to call unconditionally: * no-op when suppression is not active. Called at every terminal-ownership * release and by the postmortem fatal handlers before they print, so crash * reports reach the real terminal. */ export declare function restoreTerminalStderr(): void; /** Whether fd 2 is currently redirected away from the terminal. */ export declare function isTerminalStderrSuppressed(): boolean;