import type { Skill, LoadSkillsOptions, LoadSkillsResult, SkillDefinition } from './skills.types.js'; /** 从 SKILL.md 内容解析 name、description、triggers(frontmatter)。供 loader 与 ZIP 解析共用。 */ export declare function parseSkillFrontmatter(content: string): { name: string; description: string; triggers?: string; }; /** * 从 SKILL.md 内容解析能力定义。 * 同时支持新格式 `## Skill Definition` 和旧格式 `## Role Definition`(向后兼容)。 * 只解析能力字段(tools, prompt_extension),不再解析身份字段。 */ export declare function parseSkillDefinition(content: string): SkillDefinition | undefined; /** * @deprecated 向后兼容别名,请使用 parseSkillDefinition */ export declare function parseRoleDefinition(content: string): SkillDefinition | undefined; /** 从沙箱加载 skills */ export declare function loadSkillsFromSandbox(opts: LoadSkillsOptions): Promise; /** 从本地目录加载 skills */ export declare function loadSkillsFromDir(dirPath: string): Skill[]; /** 加载 skills(优先沙箱,fallback 本地)。支持 system + session 两路径合并。 */ export declare function loadSkills(opts: LoadSkillsOptions): Promise; /** * Format skills as system prompt section (Discovery phase: name + description only). * * 默认 `_skillsBasePath` 取自共享区(`/mnt/shared/skills`),与 AgentSandboxService.getSkillsPath() * 对齐——skills 是跨用户共享内容,物理上挂在共享区。当调用方显式传入 path 时以传入值为准。 */ export declare function formatSkillsForPrompt(result: LoadSkillsResult, _skillsBasePath?: string): string; //# sourceMappingURL=skills.loader.d.ts.map