import type { AgentTraceAttributes } from "./trace-attributes.js"; import { type CreateBootstrappedHostedChatExecutionRuntimeInput } from "./chat-execution-runtime.js"; import type { AgUiRuntimeRequest } from "../runtime/ag-ui-contract.js"; /** Public API contract for prepared hosted chat execution. */ export type PreparedHostedChatExecution = Omit & { runtimeKind?: string; }; /** Options accepted by prepared hosted chat execution runtime. */ export type PreparedHostedChatExecutionRuntimeOptions = Pick & { apiUrl: string | URL; trace?: (operationName: string, operation: () => Promise) => Promise; setActiveSpanAttributes?: (attributes: AgentTraceAttributes) => void; }; /** Input payload for prepared hosted chat execution stream. */ export type PreparedHostedChatExecutionStreamInput = TExecution & { requestAbortSignal: AbortSignal; agUiInput: AgUiRuntimeRequest; }; /** Input payload for prepared hosted chat execution detached. */ export type PreparedHostedChatExecutionDetachedInput = TExecution & { abortSignal: AbortSignal; }; /** Response payload for stream prepared hosted chat execution to AG-UI. */ export declare function streamPreparedHostedChatExecutionToAgUiResponse(input: { execution: PreparedHostedChatExecutionStreamInput; runtime: PreparedHostedChatExecutionRuntimeOptions; }): Promise; /** Run prepared hosted chat execution detached. */ export declare function runPreparedHostedChatExecutionDetached(input: { execution: PreparedHostedChatExecutionDetachedInput; runtime: PreparedHostedChatExecutionRuntimeOptions; }): Promise; //# sourceMappingURL=prepared-chat-execution.d.ts.map