/** * Config file loading for quest-dev * Resolves settings from CLI flags → ~/.config/quest-dev/config.json */ export interface QuestDevConfig { pin?: string; port?: number; host?: string; device?: string; idleTimeout?: number; lowBattery?: number; unpluggedTimeout?: number; debuggingPort?: number; } /** * Path to config.json, honoring XDG_CONFIG_HOME (via configDir) with a * ~/.config fallback. A function, not a const, so the env var is read at * call time — keeping config.json and devices.json in the same XDG root. */ export declare function configPath(): string; /** * Load config from configDir()/config.json (XDG-aware). */ export declare function loadConfig(): QuestDevConfig; /** * Save config values to ~/.config/quest-dev/config.json * Merges with existing config (doesn't overwrite unrelated fields). */ export declare function saveConfig(values: QuestDevConfig): string; /** * Resolve PIN from CLI flag, then config files */ export declare function loadPin(cliPin?: string): string; /** * Like loadPin, but returns null instead of exiting when no PIN is configured. * Use this in long-running processes (e.g. the daemon) where a missing PIN * should fail one request, not crash the whole process. */ export declare function tryLoadPin(cliPin?: string): string | null; //# sourceMappingURL=config.d.ts.map