import { KeyValueCache } from 'fetchache'; import { fetch } from 'cross-fetch'; import isUrl from 'is-url'; export { isUrl }; interface ReadFileOrUrlOptions extends RequestInit { allowUnknownExtensions?: boolean; fallbackFormat?: 'json' | 'yaml'; cwd?: string; fetch?: typeof fetch; } export declare function getCachedFetch(cache: KeyValueCache): typeof fetch; export declare function readFileOrUrlWithCache(filePathOrUrl: string, cache: KeyValueCache, config?: ReadFileOrUrlOptions): Promise; export declare function readFileWithCache(filePath: string, cache: KeyValueCache, config?: ReadFileOrUrlOptions): Promise; export declare function readUrlWithCache(path: string, cache: KeyValueCache, config?: ReadFileOrUrlOptions): Promise;