1 | import type { PossibleUndefined, rcConfigLoaderOption, rcConfigResult } from "./types";
|
2 | /**
|
3 | * Find and load rcfile, return { config, filePath }
|
4 | * If not found any rcfile, throw an Error.
|
5 | * @param {string} pkgName
|
6 | * @param {rcConfigLoaderOption} [opts]
|
7 | * @returns {{ config: Object, filePath:string } | undefined}
|
8 | */
|
9 | export declare function rcFile<R extends {}>(pkgName: string, opts?: rcConfigLoaderOption): PossibleUndefined<rcConfigResult<R>>;
|