import type { AcpModelResponse } from "../runtime/acp-core.js"; import type { ProviderStreamEvent } from "../runtime/plugin-types.js"; export type LegacyAcpModelToolCall = { id?: string; intentId?: string; tool?: string; name?: string; args?: unknown; arguments?: unknown; }; export type LegacyAcpModelMessage = { content?: string | null; reasoning_content?: string; reasoning?: string; toolCalls?: LegacyAcpModelToolCall[]; tool_calls?: Array<{ id: string; type?: "function"; function?: { name?: string; arguments?: string; }; }>; }; export type LegacyAcpModelResponse = { message?: LegacyAcpModelMessage; content?: string; toolCalls?: LegacyAcpModelToolCall[]; deltas?: AsyncIterable | Iterable; usage?: { inputTokens: number; outputTokens: number; cachedTokens: number; cacheCreationTokens: number; }; }; export declare function toAcpModelResponse(response: LegacyAcpModelResponse | AcpModelResponse): AcpModelResponse; export declare function collectProviderEvents(response: AcpModelResponse): Promise;