import { createToolsFromRemoteDefinitions, type HostToolSet, type RemoteMCPToolSourceConfig, type RemoteToolSource } from "../../tool/index.js"; import { type AgentServiceMcpServerConfig } from "../service/mcp-server-config.js"; import { type AgentServiceSandboxToolsOptions, type AgentServiceSandboxToolsResult } from "../../sandbox/index.js"; import { type LiveStudioMcpToolsOptions } from "../project/live-studio-mcp-tools.js"; import type { RuntimeClientProfile } from "../runtime/client-profile.js"; import { type HostedChildProjectSwitchHandler } from "./child-steering-tools.js"; import { type DefaultHostedChildForkToolAssemblySourceResult } from "./child-requested-tools.js"; /** Public API contract for hosted child fork tool sources logger. */ export type HostedChildForkToolSourcesLogger = { error: (message: string, metadata?: Record) => void; }; /** Input payload for prepare default hosted child fork tool sources. */ export type PrepareDefaultHostedChildForkToolSourcesInput = { authToken: string; apiMcpUrl: string; mcpServers?: readonly AgentServiceMcpServerConfig[]; getProjectId: () => string | null | undefined; studioMcpUrl?: string | null; clientProfile?: RuntimeClientProfile | null; conversationId?: string; globalTools?: HostToolSet; abortSignal?: AbortSignal; onConfirmedStudioProjectSwitch?: HostedChildProjectSwitchHandler; createRemoteToolSource?: (config: RemoteMCPToolSourceConfig) => RemoteToolSource; createToolsFromRemoteDefinitions?: typeof createToolsFromRemoteDefinitions; createLiveStudioTools?: (input: LiveStudioMcpToolsOptions) => Promise<{ tools: HostToolSet; close: () => Promise; }>; isAbortError?: (error: unknown) => boolean; logger?: HostedChildForkToolSourcesLogger; }; /** Result returned from default hosted child fork tool sources. */ export type DefaultHostedChildForkToolSourcesResult = { ok: true; forkTools: HostToolSet; closeStudioMcpTools?: () => Promise; } | { ok: false; errorMessage: string; }; /** Input payload for prepare default hosted child fork sandbox tool sources. */ export type PrepareDefaultHostedChildForkSandboxToolSourcesInput = PrepareDefaultHostedChildForkToolSourcesInput & { apiUrl: string; createBashTool: AgentServiceSandboxToolsOptions["createBashTool"]; createAgentServiceSandboxTools?: (input: AgentServiceSandboxToolsOptions) => Promise; }; /** Prepare default hosted child fork tool sources. */ export declare function prepareDefaultHostedChildForkToolSources(input: PrepareDefaultHostedChildForkToolSourcesInput): Promise; /** Prepare default hosted child fork sandbox tool sources. */ export declare function prepareDefaultHostedChildForkSandboxToolSources(input: PrepareDefaultHostedChildForkSandboxToolSourcesInput): Promise; //# sourceMappingURL=child-fork-tool-sources.d.ts.map