/// import type { LoadResponse } from "./deps.js"; import type { HttpCache } from "./http_cache.js"; /** A setting that determines how the cache is handled for remote dependencies. * * The default is `"use"`. * * - `"only"` - only the cache will be re-used, and any remote modules not in * the cache will error. * - `"use"` - the cache will be used, meaning existing remote files will not be * reloaded. * - `"reloadAll"` - any cached modules will be ignored and their values will be * fetched. * - `string[]` - an array of string specifiers, that if they match the start of * the requested specifier, will be reloaded. */ export type CacheSetting = "only" | "reloadAll" | "use" | string[]; export declare function stripHashbang(value: string): string; export declare class FileFetcher { #private; constructor(httpCache: HttpCache, cacheSetting?: CacheSetting, allowRemote?: boolean); fetch(specifier: URL): Promise; }