import { KeyValueCache } from 'fetchache'; import isUrl from 'is-url'; export { isUrl }; interface ReadFileOrUrlOptions extends RequestInit { allowUnknownExtensions?: boolean; } 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;