import { AgentMessageInput, AgentSessionHost, AgentSessionProvider, AgentSessionSetupResult, AgentSessionState, AgentSessionSummary } from "./agentSessions.js"; import { AgentOperationProvenance } from "./contracts.js"; import { Workspace } from "./workspace.js"; //#region src/ai-editor/agentSessionRuntime.d.ts type Receipt = { requestId: string; status: "accepted" | "uncertain"; turnId?: string; error?: string; }; declare function createAgentSessionRuntime(options: { root: string; workspace: Workspace; provider?: AgentSessionProvider; endpoint?: string | (() => string); toolCommand?: string; mcpCommand?: string; elementsRoot?: string; }): { list(): Promise<{ available: boolean; error?: string; sessions: AgentSessionSummary[]; hosts?: AgentSessionHost[]; name: string; }>; prepare(hostId: string, authorize?: () => void): Promise; state(sessionId: string): Promise; bind(sessionId: string, agentSessionId: string | null, authorize?: () => void): Promise; send(sessionId: string, input: AgentMessageInput, authorize?: () => void): Promise; interrupt(sessionId: string, connectionId: string, authorize?: () => void): Promise; respond(sessionId: string, connectionId: string, requestId: string, response: unknown, authorize?: () => void): Promise; subscribe(sessionId: string, listener: (state: AgentSessionState) => void): () => void; authorizeTool(connectionId: string, token: string): Promise<{ authorize: () => void; capturedContext?: { snapshotId: string; timeMs: number; selectedIds: string[]; rangeMs?: [number, number]; sceneLabel?: string; referenceIds?: string[]; } | undefined; sessionId: string; provenance: AgentOperationProvenance; }>; dispose(): void; }; type AgentSessionRuntime = ReturnType; //#endregion export { AgentSessionRuntime }; //# sourceMappingURL=agentSessionRuntime.d.ts.map