import { type AgentServiceSandboxToolsOptions, type AgentServiceSandboxToolsResult } from "../../sandbox/index.js"; import type { HostToolSet } from "../../tool/index.js"; import type { DefaultHostedChatRuntimeTaskContext } from "./default-chat-runtime.js"; type CreateAgentServiceSandboxTools = (input: AgentServiceSandboxToolsOptions) => Promise>; /** Input used to prepare the hosted root sandbox tool source. */ export type PrepareHostedRootSandboxToolSourceInput = AgentServiceSandboxToolsOptions & { allowedToolNames: readonly string[] | undefined; createAgentServiceSandboxTools?: CreateAgentServiceSandboxTools; }; /** Tool source and cleanup returned for a hosted root sandbox. */ export type HostedRootSandboxToolSource = { tools: HostToolSet; closeRuntime?: () => Promise; }; /** Input used to create the hosted root local tool lifecycle. */ export type CreateHostedRootLocalToolRuntimeInput = Omit & { buildBaseTools: (taskContext: DefaultHostedChatRuntimeTaskContext) => HostToolSet; }; /** Hosted root local tool builder and runtime cleanup. */ export type HostedRootLocalToolRuntime = { buildLocalTools: (taskContext: DefaultHostedChatRuntimeTaskContext) => Promise; cleanup: () => Promise; }; /** Prepare sandbox tools only when the effective root selection includes a sandbox tool. */ export declare function prepareHostedRootSandboxToolSource(input: PrepareHostedRootSandboxToolSourceInput): Promise; /** Create the hosted root local tool builder with sandbox lifecycle ownership. */ export declare function createHostedRootLocalToolRuntime(input: CreateHostedRootLocalToolRuntimeInput): HostedRootLocalToolRuntime; export {}; //# sourceMappingURL=root-sandbox-tool-source.d.ts.map