/** * Detect CLI binaries and launch Claude / Kimi / Grok. */ import type { TargetId, TargetLaunchSpec } from './types.js'; export declare function resolveLaunchSpec(id: TargetId): TargetLaunchSpec; /** True if `bin` is on PATH. */ export declare function isBinaryOnPath(bin: string): boolean; export declare function availableLaunchTargets(): TargetLaunchSpec[]; /** Menu label includes the real argv (Grok: `--always-approve --trust`). */ export declare function launchMenuLabel(spec: TargetLaunchSpec): string; export declare function formatLaunchCommand(spec: TargetLaunchSpec): string; /** * Persist Grok folder trust so hooks/MCP/LSP run even if the user later starts * bare `grok` (Launch still passes `--trust` for the session). * Store: ~/.grok/trusted_folders.toml — same file `/hooks-trust` writes. */ export declare function ensureGrokFolderTrust(projectDir: string): { wrote: boolean; path: string; }; /** * Run the target CLI interactively (stdio inherit). Returns when the process exits. */ export declare function launchTarget(projectDir: string, id: TargetId): { ok: boolean; message?: string; };