import { type SpawnCapability, type TerminalKind } from './detect.js'; import type { AgentModelInput } from '../../agent/types.js'; export interface SpawnOutcome { spawned: boolean; kind: TerminalKind; capability: SpawnCapability; reason?: string; } export type RunFn = (cmd: string, args: string[], options: { stdio: 'ignore'; timeout: number; }) => { status: number | null; error?: Error; }; export interface TrySpawnOptions { forkId: string; model: AgentModelInput; cwd: string; interactive: boolean; env?: NodeJS.ProcessEnv; platform?: NodeJS.Platform; run?: RunFn; } export declare function trySpawnTab(opts: TrySpawnOptions): SpawnOutcome; export { detectTerminal } from './detect.js'; export type { TerminalKind, SpawnCapability } from './detect.js'; export { planSpawn, resolveResumeInvocation } from './spawners.js'; export type { SpawnPlan, ResumeInvocation } from './spawners.js';