export interface LoaderOptions { apiKey: string; region?: string; /** * URL of the MapLibre GL JS worker script (`maplibre-gl-worker.mjs`). MapLibre v6 can't find its worker file once a * bundler (Vite, webpack, esbuild, Rollup) has bundled it. If you don't set this, the Loader keeps a worker URL your * app already set with MapLibre's `setWorkerUrl()`, and otherwise uses the worker for the exact bundled MapLibre * version from the jsDelivr CDN. Set this to serve the worker yourself, e.g. to avoid the CDN or a `worker-src blob:` * CSP directive. With Vite, `import workerUrl from "maplibre-gl/dist/maplibre-gl-worker.mjs?worker&url"`. */ workerUrl?: string; } export declare class Loader { #private; constructor({ apiKey, region, workerUrl }: LoaderOptions); importLibrary(name: string): Promise; load(): Promise; }