/** * ConfigPathResolver - Resolves configuration file paths with fallback mechanism * * Priority: * 1. User config: ~/.mage-db-sync/config/ * 2. Package config: /config/ (fallback) */ export declare class ConfigPathResolver { private static userConfigDir; private static packageConfigDir; /** * Get the user config directory path */ static getUserConfigDir(): string; /** * Set the package config directory (npm installation path) */ static setPackageConfigDir(npmPath: string): void; /** * Get the package config directory path */ static getPackageConfigDir(): string; /** * Ensure user config directory exists */ static ensureUserConfigDir(): void; /** * Resolve config file path with fallback * * Checks in order: * 1. ~/.mage-db-sync/config/{relativePath} * 2. /config/{relativePath} * * @param relativePath - Relative path within config directory (e.g., 'settings.json', 'databases/staging.json') * @returns Full path to config file, or null if not found */ static resolveConfigPath(relativePath: string): string | null; /** * Resolve config file path with fallback, throws if not found * * @param relativePath - Relative path within config directory * @returns Full path to config file * @throws Error if config file not found */ static resolveConfigPathOrThrow(relativePath: string): string; /** * Get all possible locations for a config file */ static getConfigLocations(relativePath: string): string[]; /** * Check if config exists in user directory */ static existsInUserConfig(relativePath: string): boolean; /** * Check if config exists in package directory */ static existsInPackageConfig(relativePath: string): boolean; /** * Get the location where a config file was found */ static getConfigLocation(relativePath: string): 'user' | 'package' | null; /** * Copy sample file to target with fallback support (preserving symlinks) */ static copySampleFile(sampleRelativePath: string, targetRelativePath: string): boolean; } //# sourceMappingURL=ConfigPathResolver.d.ts.map