import type { KernelConfig } from './kernel-config.js'; /** * Resolve and load configuration for the linter. * * Combines the base defaults with any discovered configuration file, validates * the result against {@link configSchema} and normalizes token references. * * @param cwd - Current working directory. * @param configPath - Optional explicit config path. * @returns Parsed and validated config object. * @throws {ConfigError} If the configuration fails validation. * @throws {Error} If token loading fails. * * @example * ```ts * const config = await loadConfig(process.cwd()); * console.log(config.rules); * ``` */ export declare function loadConfig(cwd: string, configPath?: string): Promise; //# sourceMappingURL=loader.d.ts.map