export type SkillDefaultPolicy = 'all-enabled' | 'all-disabled'; export interface SkillProfileConfig { description?: string; extends?: string | string[]; include?: string[]; exclude?: string[]; } export interface SkillContextRule { name?: string; profile: string; when: { cwd?: string | string[]; github_org?: string | string[]; github_repo?: string | string[]; }; } export interface SkillsConfig { version: number; /** Legacy global enablement map. v3 stores enablement in profiles. */ enabled: Record; /** Legacy fallback policy. v3 stores baseline behavior as profile rules. */ defaults: SkillDefaultPolicy; current_profile?: string; profiles: Record; contexts: SkillContextRule[]; } export declare function get_config_path(): string; export declare function safe_profile_name(value: string): string | undefined; export declare function load_skills_config(): SkillsConfig; export declare function save_skills_config(config: SkillsConfig): void; export declare function make_skill_key(name: string, source: string): string; export declare function is_skill_enabled(config: SkillsConfig, key: string): boolean;