import type { TerminalBackend } from '../types.js';
/**
 * AppleScript that opens a Terminal.app tab running the command.
 *
 * `do script` with no `in` target opens a NEW window; with a front window
 * present, `tell application "System Events" to keystroke "t"` would be the only
 * way to force a tab, and that needs an Accessibility grant. So: a window when
 * none exists, otherwise `do script … in front window`, which Terminal renders
 * as a new tab of that window when its "New tabs" setting is on and a new
 * window otherwise. Either way the command runs in a fresh, visible surface.
 */
export declare function terminalAppTabScript(cwd: string, command: string[]): string;
export declare const terminalAppBackend: TerminalBackend;
