/** * Local stub for CoordinationLLMResponse — removed from * @elizaos/plugin-agent-orchestrator 2.x. Matches the shape this file needs. */ interface CoordinationLLMResponse { action: string; reasoning: string; response?: string; useKeys?: boolean; keys?: string[]; } /** Console bridge exposed by PTYService for terminal I/O. */ export interface ConsoleBridge { on(event: string, listener: (...args: any[]) => void): void; off(event: string, listener: (...args: any[]) => void): void; writeRaw(sessionId: string, data: string): void; resize(sessionId: string, cols: number, rows: number): void; } /** PTY service interface (accessed via runtime.getService). */ export interface PTYService { consoleBridge?: ConsoleBridge; stopSession?(sessionId: string): Promise; } /** * Strip JSON action blocks from text before displaying in chat. * Handles both fenced (```json ... ```) and bare JSON formats. */ export declare function stripActionBlockFromDisplay(text: string): string; /** * Parse a JSON action block from Milady's natural language response. * Looks for a fenced ```json block first, then bare JSON with "action" key. * Returns null if no valid action block is found. */ export declare function parseActionBlock(text: string): CoordinationLLMResponse | null; export {}; //# sourceMappingURL=parse-action-block.d.ts.map