import { a as SkillScriptRunner } from "../script-CFDLTk5b.js";
import { t as SkillScriptWorkspace } from "../script-workspace-BpdAYq1R.js";
import { ToolSet } from "ai";

//#region src/skills/runner.d.ts
/**
 * Options for {@link runner}.
 *
 * @experimental Skill script execution is experimental and the option shape
 * may change before stabilizing.
 */
interface WorkerSkillScriptRunnerOptions {
  loader: WorkerLoader;
  timeout?: number;
  network?: boolean;
  workspace?: "none" | "read" | "read-write";
  workspaceInstance?: SkillScriptWorkspace;
  tools?: ToolSet | (() => ToolSet | Promise<ToolSet>);
}
/**
 * Create a skill script runner backed by a Worker Loader.
 *
 * Capabilities are opt-in and enforced by a single host bridge: no network and
 * no tools by default, read-only workspace access when `workspaceInstance` is
 * provided. JS/TS scripts are function-style (`export default run(input, ctx)`)
 * and receive `ctx = { skill, files, workspace, tools, output }`. Python and
 * Bash use the path-based `/skill`, `/input.json`, `/output` contract.
 *
 * @experimental Skill script execution is experimental and may change before
 * stabilizing.
 */
declare function runner(
  options: WorkerSkillScriptRunnerOptions
): SkillScriptRunner;
//#endregion
export { WorkerSkillScriptRunnerOptions, runner };
//# sourceMappingURL=runner.d.ts.map
