/** * .skillsrc Configuration File Module * * Supports project-level and user-level configuration for skill sources, * registries, and installation defaults. * * Search order: * 1. cwd/.skillsrc (YAML/JSON) * 2. cwd/.skillsrc.json * 3. ~/.skillsrc * 4. ~/.skillsrc.json */ export interface SkillsRCSource { /** Source type */ type: 'git' | 'npm'; /** Git URL (for git sources) */ url?: string; /** npm registry URL (for npm sources) */ registry?: string; /** npm scope (e.g. "@company") */ scope?: string; /** Auth method hint */ auth?: 'token' | 'ssh' | 'env'; /** Environment variable name containing auth token */ envVar?: string; /** Optional label for display */ name?: string; } export interface SkillsRCDefaults { /** Default agents to install to */ agents?: string[]; /** Whether to install globally by default */ global?: boolean; } export interface SkillsRC { /** Pre-configured skill sources */ sources?: SkillsRCSource[]; /** Installation defaults */ defaults?: SkillsRCDefaults; } /** * Load .skillsrc configuration from project or user directory * * Searches in order: * 1. cwd/.skillsrc * 2. cwd/.skillsrc.json * 3. ~/.skillsrc * 4. ~/.skillsrc.json * * Returns the first valid config found, or null if none exist. */ export declare function loadSkillsRC(cwd?: string): Promise; /** * Get all configured sources from .skillsrc, optionally filtered by type */ export declare function getSourcesByType(config: SkillsRC, type: 'git' | 'npm'): SkillsRCSource[]; /** * Get the npm registry URL for a given scope from .skillsrc */ export declare function getRegistryForScope(config: SkillsRC, scope: string): string | undefined; /** * Get the auth env var for a given source URL */ export declare function getAuthEnvVar(config: SkillsRC, url: string): string | undefined; //# sourceMappingURL=skillsrc.d.ts.map