export interface ResolvedConfigFile { config: unknown; filepath: string; } /** * Resolve all configuration files on disk from filesystem root to `cwd`. * * When no explicit `configPath` is provided, this walks from the current * working directory toward the filesystem root and captures at most one config * per directory according to {@link CONFIG_SEARCH_PLACES} precedence. * * @param cwd - Current working directory to begin searching from. * @param configPath - Optional explicit path to a config file. * @returns Config results ordered from root-most to leaf-most. */ export declare function resolveConfigFiles(cwd: string, configPath?: string): Promise; /** * Resolve a configuration file on disk. * * Searches upward from a starting directory using `cosmiconfig` and supports * an explicit path override. * * @param cwd - Current working directory to begin searching from. * @param configPath - Optional explicit path to a config file. * @returns The loaded configuration and file path, or `null` if not found. * @throws {Error} When an explicit `configPath` does not exist. * * @example * ```ts * const result = await resolveConfigFile(process.cwd()); * console.log(result?.filepath); * ``` */ export declare function resolveConfigFile(cwd: string, configPath?: string): Promise<{ config: unknown; filepath: string; } | null>; //# sourceMappingURL=file-resolution.d.ts.map