/** Use native messages: the UI adapter merges tool steps and final answers. */ export interface OpenCodeTurnMessage { info?: { id: string; role: string; parentID?: string; agent?: string; summary?: unknown; finish?: string; error?: unknown; system?: string; time: { created?: number; completed?: number; }; }; parts: readonly { type: string; text?: string; ignored?: boolean; synthetic?: boolean; tool?: string; state?: { status?: string; input?: unknown; }; metadata?: { compaction_continue?: unknown; }; }[]; } export declare const finalResponseAgent = "sapiom-final-response"; export declare const turnRecoveryAgent = "sapiom-turn-recovery"; export declare function openCodeResult(message: OpenCodeTurnMessage | undefined, token: string | undefined): { status: "failed" | "finished"; answer: string; } | undefined; export declare function openCodeTurn(messages: readonly OpenCodeTurnMessage[], status: string | undefined): { status: "ready" | "working" | "finished" | "stopped" | "failed" | "unknown"; missing?: string; }; //# sourceMappingURL=opencode-turn.d.ts.map