/** * Config file support for Open Skills * * Loads configuration from: * 1. Project-local: ./skills.config.json (highest priority) * 2. Global: ~/.hasna/skills/config.json (JSON format, lowest priority) * (backward compat: also checks ~/.skillsrc) * * Values from the project config override global config. */ export interface SkillsConfig { mode?: "local" | "hosted"; defaultAgent?: "claude" | "codex" | "gemini" | "pi" | "opencode" | "all"; defaultScope?: "global" | "project"; format?: "compact" | "json" | "csv"; apiUrl?: string; } export type ConfigScope = "global" | "project"; /** * Get the data directory for skills global config/data. * New default: ~/.hasna/skills/ * Auto-migrates from ~/.skillsrc if the new config doesn't exist yet. */ export declare function getDataDir(): string; /** * Get the config file path for a given scope */ export declare function getConfigPath(scope: ConfigScope): string; /** * Load merged config: project-local overrides global */ export declare function loadConfig(): SkillsConfig; /** * Save a single config key-value pair to the specified scope */ export declare function saveConfig(key: string, value: string, scope?: ConfigScope): void;