/** * Configuration File Loader * * Discovers and loads wonder-logger.yaml config files from the project root. */ import { type WonderLoggerConfig } from './schema.js'; /** * Default config file name */ export declare const DEFAULT_CONFIG_FILE = "wonder-logger.yaml"; /** * Finds the config file in the current working directory * * @param fileName - Config file name (defaults to 'wonder-logger.yaml') * @returns Absolute path to config file, or null if not found */ export declare function findConfigFile(fileName?: string): string | null; /** * Loads and validates config from a file * * @param filePath - Absolute path to config file * @returns Validated configuration object with _configDir metadata * @throws Error if file doesn't exist, is invalid YAML, or fails validation */ export declare function loadConfigFromFile(filePath: string): WonderLoggerConfig; /** * Loads config from default location or provided path * * @param options - Optional configuration * @param options.configPath - Custom config file path * @param options.required - Whether config file is required (defaults to true) * @returns Validated configuration object, or null if not required and not found * @throws Error if config is required but not found, or if validation fails * * @example * // Load from default location (wonder-logger.yaml in cwd) * const config = loadConfig() * * // Load from custom path * const config = loadConfig({ configPath: './config/custom.yaml' }) * * // Optional config (returns null if not found) * const config = loadConfig({ required: false }) */ export declare function loadConfig(options?: { configPath?: string; required?: boolean; }): WonderLoggerConfig | null; //# sourceMappingURL=loader.d.ts.map