import type { ToolDefinitionMirror } from './dsh-ctx.js'; /** 模型看到的工具名(DSH 工具名用下划线小写,照 `read_file` 同形)。 */ export declare const SKILL_TOOL_NAME: "run_schedule_command"; /** 纯函数:给技能包根目录,读它的 `package.json`,回 `bin` 声明的入口绝对路径。 */ export declare function resolveSkillEntry(packageDir: string, readFile?: (path: string) => string): string; interface SpawnOutcome { readonly status: number | null; readonly stdout: string; readonly stderr: string; readonly error?: Error; } /** 可注入的三个边界(默认走真实现):入口解析、宿主运行时、spawn。 */ export interface SkillToolDeps { readonly entry?: () => string; readonly execPath?: () => string; readonly run?: (bin: string, argv: readonly string[], env: Record) => SpawnOutcome; } /** 造工具定义(宿主 `ctx.tools.register` 消费;形状与 `defineTool` 产物一致,见 dsh-ctx 出处)。 */ export declare function createSkillTool(deps?: SkillToolDeps): ToolDefinitionMirror; export {}; //# sourceMappingURL=skill-tool.d.ts.map