mirror of
https://github.com/idanoo/GoScrobble.git
synced 2024-11-24 09:25:15 +00:00
21 lines
1.1 KiB
TypeScript
21 lines
1.1 KiB
TypeScript
import { CosmiconfigResult, ExplorerOptions, ExplorerOptionsSync, Cache, LoadedFileContent } from './types';
|
|
import { Loader } from './index';
|
|
declare class ExplorerBase<T extends ExplorerOptions | ExplorerOptionsSync> {
|
|
protected readonly loadCache?: Cache;
|
|
protected readonly searchCache?: Cache;
|
|
protected readonly config: T;
|
|
constructor(options: T);
|
|
clearLoadCache(): void;
|
|
clearSearchCache(): void;
|
|
clearCaches(): void;
|
|
private validateConfig;
|
|
protected shouldSearchStopWithResult(result: CosmiconfigResult): boolean;
|
|
protected nextDirectoryToSearch(currentDir: string, currentResult: CosmiconfigResult): string | null;
|
|
private loadPackageProp;
|
|
protected getLoaderEntryForFile(filepath: string): Loader;
|
|
protected loadedContentToCosmiconfigResult(filepath: string, loadedContent: LoadedFileContent): CosmiconfigResult;
|
|
protected validateFilePath(filepath: string): void;
|
|
}
|
|
declare function getExtensionDescription(filepath: string): string;
|
|
export { ExplorerBase, getExtensionDescription };
|
|
//# sourceMappingURL=ExplorerBase.d.ts.map
|