UNPKG

547 BTypeScriptView Raw
1import { Fetcher, FetchOptions, MinimalFetchOptions } from './Fetcher';
2import { Locator } from './types';
3export declare class MultiFetcher implements Fetcher {
4 private readonly fetchers;
5 constructor(fetchers: Array<Fetcher>);
6 supports(locator: Locator, opts: MinimalFetchOptions): boolean;
7 getLocalPath(locator: Locator, opts: FetchOptions): import("@yarnpkg/fslib").PortablePath | null;
8 fetch(locator: Locator, opts: FetchOptions): Promise<import("./Fetcher").FetchResult>;
9 private tryFetcher;
10 private getFetcher;
11}