import type { UserTurnDocument } from '@xopcai/gateway-contract'; import type { UserTurnAttachment } from '../../gateway/user-turn-input.js'; import type { AgentSourceContext } from '../source-context/types.js'; export type SteerExternalTurnOptions = { attachments?: UserTurnAttachment[]; sourceContexts?: AgentSourceContext[]; clientMessageId?: string; userTurnDocument?: UserTurnDocument; onHandled?: () => void; }; type ActiveExternalRun = { runId: string; stop: AbortController; finished: Promise; steer: (content: string, options?: SteerExternalTurnOptions) => Promise; }; export declare const activeRuns: Map; export declare function hasActiveExternalTurn(conversationId: string): boolean; export {};