import type { ParsedSkillFrontmatter, SkillInvocationPolicy, SkillMetadata } from "./skill-types.js";
/**
 * Parse a YAML-like frontmatter block into a flat key→value record.
 * Uses a lightweight line parser to avoid a YAML library dependency.
 */
export declare function parseFrontmatter(content: string): ParsedSkillFrontmatter;
/**
 * Resolve structured metadata from the `metadata:` frontmatter field.
 * Expects `metadata: {"openclaw": {...}}` (JSON format).
 */
export declare function resolveSkillMetadata(frontmatter: ParsedSkillFrontmatter): SkillMetadata | undefined;
/**
 * Resolve invocation policy from frontmatter fields.
 */
export declare function resolveSkillInvocationPolicy(frontmatter: ParsedSkillFrontmatter): SkillInvocationPolicy;
/**
 * Get the canonical key for a skill (metadata.skillKey or skill.name).
 */
export declare function resolveSkillKey(skillName: string, metadata?: SkillMetadata): string;
