import type { ProxySubagentAwaitResult } from "./proxy"; export interface OpenCodeSubagentSession { id: string; directory?: string; } export interface OpenCodeSubagentMessage { info?: { role?: string; }; parts?: Array<{ type?: string; text?: string; synthetic?: boolean; ignored?: boolean; }>; } export interface OpenCodeSubagentAwaitSource { getSession(sessionId: string, directory: string): Promise; getStatuses(directory: string): Promise>; listMessages(sessionId: string, directory: string): Promise; } export declare function awaitOpenCodeSubagent(source: OpenCodeSubagentAwaitSource, input: { directory: string; sessionId: string; timeoutMs: number; }): Promise;