/**
 * Subagent Markdown Parser
 *
 * Parses subagent definitions from markdown files with YAML frontmatter.
 * Format:
 * ```yaml
 * ---
 * name: my-agent
 * description: Description of when to use
 * model: haiku
 * tools:
 *   - Read
 *   - Grep
 * ---
 *
 * You are a specialized agent...
 * ```
 */
import type { ParsedSubagentFile, SubagentFrontmatter, SubagentLoadPriority } from './types.js';
/**
 * Parse a subagent definition from a markdown file.
 */
export declare function parseSubagentMarkdown(filePath: string, priority?: SubagentLoadPriority): Promise<ParsedSubagentFile>;
/**
 * Validate a subagent frontmatter object.
 */
export declare function validateFrontmatter(frontmatter: Record<string, unknown>): {
    valid: true;
} | {
    valid: false;
    error: string;
};
/**
 * Extract YAML frontmatter from markdown content and validate the subagent
 * fields. Returns the typed `SubagentFrontmatter` (unknown fields like
 * `subscribe:` are dropped).
 */
export declare function extractFrontmatter(content: string): SubagentFrontmatter;
/**
 * Extract the body content from markdown (after frontmatter).
 */
export declare function extractBody(content: string): string;
//# sourceMappingURL=markdown-parser.d.ts.map