UNPKG

1.11 kBTypeScriptView Raw
1import { Loader } from './index';
2import { Cache, CosmiconfigResult, ExplorerOptions, ExplorerOptionsSync, LoadedFileContent } from './types';
3declare class ExplorerBase<T extends ExplorerOptions | ExplorerOptionsSync> {
4 protected readonly loadCache?: Cache;
5 protected readonly searchCache?: Cache;
6 protected readonly config: T;
7 constructor(options: T);
8 clearLoadCache(): void;
9 clearSearchCache(): void;
10 clearCaches(): void;
11 private validateConfig;
12 protected shouldSearchStopWithResult(result: CosmiconfigResult): boolean;
13 protected nextDirectoryToSearch(currentDir: string, currentResult: CosmiconfigResult): string | null;
14 private loadPackageProp;
15 protected getLoaderEntryForFile(filepath: string): Loader;
16 protected loadedContentToCosmiconfigResult(filepath: string, loadedContent: LoadedFileContent, forceProp: boolean): CosmiconfigResult;
17 protected validateFilePath(filepath: string): void;
18}
19declare function getExtensionDescription(filepath: string): string;
20export { ExplorerBase, getExtensionDescription };
21//# sourceMappingURL=ExplorerBase.d.ts.map
\No newline at end of file