/**
 * Enhanced Skills Registry
 *
 * Manages bundled, managed, and workspace skills with frontmatter parsing,
 * install/uninstall, enable/disable, and env override support.
 */
export interface SkillMetadata {
    name: string;
    version: string;
    description: string;
    author?: string;
    tags: string[];
    source: 'bundled' | 'managed' | 'workspace';
    enabled: boolean;
    installedAt?: number;
    path: string;
}
export interface SkillFrontmatter {
    name: string;
    version?: string;
    description?: string;
    author?: string;
    tags?: string[];
    env?: Record<string, string>;
}
export declare class SkillRegistry {
    private skills;
    private dirs;
    constructor(baseDir?: string);
    /**
     * Scan all skill directories and load metadata.
     */
    scan(): SkillMetadata[];
    /**
     * Load a single SKILL.md file into the registry.
     */
    private loadSkillFile;
    /**
     * Get a skill by name.
     */
    get(name: string): SkillMetadata | undefined;
    /**
     * List all skills, optionally filtered by source.
     */
    list(source?: SkillMetadata['source']): SkillMetadata[];
    /**
     * Install a skill from content string into the managed directory.
     */
    install(name: string, content: string): SkillMetadata;
    /**
     * Remove a managed skill. Returns false if skill not found or not managed.
     */
    uninstall(name: string): boolean;
    /**
     * Enable or disable a skill.
     */
    setEnabled(name: string, enabled: boolean): boolean;
    /**
     * Get the full SKILL.md content for a skill.
     */
    getContent(name: string): string | null;
    /**
     * Parse YAML-like frontmatter from SKILL.md content.
     */
    static parseFrontmatter(content: string): SkillFrontmatter;
    /**
     * Get env overrides for a skill.
     */
    getEnvOverrides(name: string): Record<string, string>;
    /**
     * Re-scan all directories.
     */
    refresh(): SkillMetadata[];
}
