import type { AgentResponse, Message as AgentMessage } from "../schemas/index.js"; import type { ForkPart } from "./fork-runtime-types.js"; type StreamedToolCallState = { toolCallId: string; toolName: string; inputText: string; input: unknown; status: "pending" | "completed" | "error"; output?: unknown; errorText?: string; }; type StreamedMessage = { role: "assistant" | "tool"; parts: AgentMessage["parts"]; }; export type StreamedStepState = { text: string; toolCalls: Map; messages: StreamedMessage[]; streamError?: Error; }; export declare function createAgentRuntimeForkAbortError(abortSignal?: AbortSignal): Error; /** State for create streamed step. */ export declare function createStreamedStepState(): StreamedStepState; /** State for apply part to streamed step. */ export declare function applyPartToStreamedStepState(state: StreamedStepState, part: ForkPart): void; /** Response payload for resolve fork step. */ export declare function resolveForkStepResponse(input: { responsePromise: Promise; responseTimeoutMs: number; abortSignal?: AbortSignal; currentMessages: readonly AgentMessage[]; streamedStepState: StreamedStepState; }): Promise; export {}; //# sourceMappingURL=fork-runtime-step-state.d.ts.map