import type { DaemonSession } from './types.js'; type LocalTerminalBackend = 'cli' | 'app'; export type LocalTerminalOpenError = 'cli_unavailable' | 'resume_unavailable' | 'unsupported_platform' | 'launcher_unavailable' | 'spawn_failed' | 'adapter_error'; export type LocalTerminalOpenResult = { ok: true; backend: LocalTerminalBackend; command: string; launcher: string; } | { ok: false; error: LocalTerminalOpenError; cliId?: string; executable?: string; detail?: string; command?: string; }; type LocalCliCommandResult = { ok: true; command: string; executable: string; mode: 'resume' | 'launch'; } | { ok: false; error: 'cli_unavailable' | 'resume_unavailable' | 'adapter_error'; cliId?: string; executable?: string; detail?: string; }; export declare function localCliCommandForSession(ds: DaemonSession): LocalCliCommandResult; /** Per-emulator command forwarding: gnome-terminal wants `--`, xfce4-terminal * `-x`, kitty / xdg-terminal-exec take the command as positional args, and the * xterm lineage (konsole / alacritty / xterm and most others, including * whatever BOTMUX_TERMINAL points at) wants `-e`. */ export declare function terminalLaunchArgs(terminalBase: string, shell: string, command: string): string[]; /** Whether the daemon host can plausibly pop a native terminal window at all. * Gates the card button so headless/server deployments don't carry a button * that can only ever fail: macOS always qualifies (osascript + Terminal.app * ship with the OS); Linux only with a GUI session (DISPLAY/WAYLAND_DISPLAY) * or an explicit BOTMUX_TERMINAL/TERMINAL override. */ export declare function localTerminalCapable(): boolean; export declare function openLocalTerminalForSession(ds: DaemonSession): LocalTerminalOpenResult; export {}; //# sourceMappingURL=local-terminal-opener.d.ts.map