type FetchImpl = typeof fetch; type LookupAddresses = (hostname: string) => Promise; type PinnedFetchImpl = (url: URL, address: string, signal: AbortSignal) => Promise; export interface FetchUploadSourceOptions { label: string; fallbackContentType: string; fallbackFilename: string; timeoutMs: number; maxBytes?: number; allowedContentTypes?: string[]; fetchImpl?: FetchImpl; pinnedFetchImpl?: PinnedFetchImpl; lookupAddresses?: LookupAddresses; } export interface UploadSource { buffer: Buffer; contentType: string; filename: string; } export declare function fetchUploadSource(url: string, opts: FetchUploadSourceOptions): Promise; export declare function validateRemoteUrl(url: URL, lookupAddresses?: LookupAddresses): Promise; export {}; //# sourceMappingURL=remote-fetch.d.ts.map