import type { Skill } from "./contracts.js"; import type { ManifestContributionDeclaration } from "./manifests.js"; /** Split a markdown file with `---` frontmatter into a parsed map and body. * Exported so Node-side loaders (e.g. agent bundle resolution) can reuse the * same frontmatter parser without duplicating it. */ export declare function splitFrontmatter(text: string, path: string): { front: Map; body: string; }; /** Parse a `SKILL.md` into a {@link Skill}. Frontmatter keys map to `name` * (required), `description`, `toolNames` (comma- or YAML-list); the markdown * body becomes `instructions`. `context` declared in a file is surfaced as * metadata only — file-declared context providers need a `module`; Phase 30 * owns instruction injection and context wiring. */ export declare function parseSkillFile(text: string, path: string): Skill; /** Parse a per-agent `AGENT.md` bundle frontmatter file into a manifest-referenced declaration. * Only `name`/`metadata` surface here; full agent resolution is Phase 33's * `resolveAgentDefinition`. The file path is recorded as `resource`. */ export declare function parseAgentFile(text: string, path: string): ManifestContributionDeclaration;