import type { EventBus } from '@earendil-works/pi-coding-agent'; export interface LaunchBackgroundAgentOptions { name: string; agent: 'planner' | 'orchestrator' | 'reviewer' | 'worker'; cwd: string; prompt: string; inheritContext?: boolean; } export interface SubagentCorrelation { workflow: string; executionId?: string; unitId?: string; parentUnitId?: string; metadata?: Record; } export interface SubagentEscalation { correlation: SubagentCorrelation; blocker: string; attempts: string[]; evidence: string[]; needsUserDecision: boolean; } /** Spawn one detached top-level agent through @tintinweb/pi-subagents public RPC v2. */ export declare function launchBackgroundAgent(events: EventBus, options: LaunchBackgroundAgentOptions): Promise<{ name: string; taskId: string; queued: true; }>; export declare function renderSubagentEscalation(value: SubagentEscalation): string; export declare function parseSubagentEscalation(output: string): SubagentEscalation; //# sourceMappingURL=subagentx.d.ts.map