import type { Config } from './types.js'; /** * Loads the Lupa configuration from a local file (e.g. lupa.config.ts). * * @category Configuration * @useWhen You need to programmatically load and parse the Lupa configuration from a file. * * @param root - The root directory to search for the configuration file. * @param configPath - Optional path to the configuration file. * @returns A Promise that resolves to the loaded configuration object, or null if not found. * * @example * ```ts * import { loadLupaConfig, Config } from '@pawel-up/lupa/runner' * * const config = await loadLupaConfig('/path/to/root') * ``` */ export declare function loadLupaConfig(root: string, configPath?: string): Promise;