/**
 * Build the arguments array for invoking osascript to open a Terminal window
 * running `command`. Escapes backslashes first, then double-quotes, so that
 * neither character can break out of the AppleScript string literal.
 */
export declare function buildOsascriptArgs(command: string): string[];
/**
 * Returns true when the current platform is macOS (darwin).
 * Accepts an explicit platform string for testability.
 */
export declare function canLaunchTerminal(platform?: string): boolean;
/**
 * Launch `command` in a new macOS Terminal.app window via osascript.
 * The optional `exec` parameter is injectable so tests never spawn a real
 * process — pass a fake to avoid side effects.
 */
export declare function launchBuildInTerminal(command: string, exec?: (cmd: string, args: string[]) => Promise<unknown>): Promise<{
    ok: true;
} | {
    ok: false;
    error: string;
}>;
