import type { BinaryFetcher, DirectoryFetcher, Fetchers, FetchFunction, GitFetcher } from '@pnpm/fetching.fetcher-base'; import type { CustomFetcher } from '@pnpm/hooks.types'; import { type AtomicResolution } from '@pnpm/resolving.resolver-base'; export type PickedFetcher = FetchFunction | DirectoryFetcher | GitFetcher | BinaryFetcher; export declare function pickFetcher(fetcherByHostingType: Fetchers, resolution: AtomicResolution, opts?: { customFetchers?: CustomFetcher[]; packageId: string; }): Promise;