export * from './maps/api/index'; export * from 'maplibre-gl'; export * from './common/interface'; export { NBMap, NBMapOptions } from './maps/map'; export { ResourceType as ResourceTypeEnum } from 'maplibre-gl'; export type { StyleSpecification } from '@maplibre/maplibre-gl-style-spec'; export { utils } from './utils'; /** * NextBillion.ai web SDK Entry. * * You need to use the singleton instance of this class by calling `window.nextbillion` if you load the sdk with CDN url. * Or you can get instance by `import nextbillion from '@nbai/nbmap-gl' if you import the sdk with npm` * */ export declare class NextBillion { maps: { NavigationService: typeof import("./maps/api/index").NavigationService; OptimizationMvrpService: typeof import("./maps/api/index").OptimizationMvrpService; OptimizationMvrpServiceV2: typeof import("./maps/api/index").OptimizationMvrpServiceV2; DirectionsService: typeof import("./maps/api/index").DirectionsService; DistanceMatrixService: typeof import("./maps/api/index").DistanceMatrixService; SnapToRoadsService: typeof import("./maps/api/index").SnapToRoadsService; Map: typeof import("./maps/map").NBMap; now(): number; setNow(timestamp: number): void; restoreNow(): void; isTimeFrozen(): boolean; prewarm(): void; clearPrewarmedResources(): void; addProtocol(customProtocol: string, loadFn: import("maplibre-gl").AddProtocolAction): void; removeProtocol(customProtocol: string): void; createTileMesh(options: import("maplibre-gl").CreateTileMeshOptions, forceIndicesSize?: import("maplibre-gl").IndicesType): import("maplibre-gl").TileMesh; setRTLTextPlugin(pluginURL: string, lazy: boolean): Promise; getRTLTextPluginStatus(): string; getVersion(): string; getWorkerCount(): number; setWorkerCount(count: number): void; getMaxParallelImageRequests(): number; setMaxParallelImageRequests(numRequests: number): void; getWorkerUrl(): string; setWorkerUrl(value: string): void; importScriptInWorkers(workerUrl: string): Promise; AJAXError: typeof import("maplibre-gl").AJAXError; config: { MAX_PARALLEL_IMAGE_REQUESTS: number; MAX_PARALLEL_IMAGE_REQUESTS_PER_FRAME: number; MAX_TILE_CACHE_ZOOM_LEVELS: number; REGISTERED_PROTOCOLS: { [x: string]: import("maplibre-gl").AddProtocolAction; }; WORKER_URL: string; }; CollisionBoxArray: typeof import("maplibre-gl").CollisionBoxArray; LngLat: typeof import("maplibre-gl").LngLat; MercatorCoordinate: typeof import("maplibre-gl").MercatorCoordinate; OverscaledTileID: typeof import("maplibre-gl").OverscaledTileID; Evented: typeof import("maplibre-gl").Evented; AlphaImage: typeof import("maplibre-gl").AlphaImage; TextFit: typeof import("maplibre-gl").TextFit; GeoJSONFeature: typeof import("maplibre-gl").GeoJSONFeature; LngLatBounds: typeof import("maplibre-gl").LngLatBounds; EdgeInsets: typeof import("maplibre-gl").EdgeInsets; Dispatcher: typeof import("maplibre-gl").Dispatcher; GeoJSONSource: typeof import("maplibre-gl").GeoJSONSource; VectorTileSource: typeof import("maplibre-gl").VectorTileSource; ImageSource: typeof import("maplibre-gl").ImageSource; CanvasSource: typeof import("maplibre-gl").CanvasSource; addSourceType: (name: string, SourceType: import("maplibre-gl").SourceClass) => Promise; ResourceType: typeof import("maplibre-gl").ResourceType; Painter: typeof import("maplibre-gl").Painter; FeatureIndex: typeof import("maplibre-gl").FeatureIndex; Tile: typeof import("maplibre-gl").Tile; ImageAtlas: typeof import("maplibre-gl").ImageAtlas; Style: typeof import("maplibre-gl").Style; StyleLayer: typeof import("maplibre-gl").StyleLayer; MessageType: typeof import("maplibre-gl").MessageType; Actor: typeof import("maplibre-gl").Actor; Hash: typeof import("maplibre-gl").Hash; DragPanHandler: typeof import("maplibre-gl").DragPanHandler; MapMouseEvent: typeof import("maplibre-gl").MapMouseEvent; MapTouchEvent: typeof import("maplibre-gl").MapTouchEvent; MapWheelEvent: typeof import("maplibre-gl").MapWheelEvent; AttributionControl: typeof import("maplibre-gl").AttributionControl; TwoFingersTouchZoomHandler: typeof import("maplibre-gl").TwoFingersTouchZoomHandler; TwoFingersTouchRotateHandler: typeof import("maplibre-gl").TwoFingersTouchRotateHandler; TwoFingersTouchPitchHandler: typeof import("maplibre-gl").TwoFingersTouchPitchHandler; ScrollZoomHandler: typeof import("maplibre-gl").ScrollZoomHandler; BoxZoomHandler: typeof import("maplibre-gl").BoxZoomHandler; DragRotateHandler: typeof import("maplibre-gl").DragRotateHandler; CooperativeGesturesHandler: typeof import("maplibre-gl").CooperativeGesturesHandler; KeyboardHandler: typeof import("maplibre-gl").KeyboardHandler; DoubleClickZoomHandler: typeof import("maplibre-gl").DoubleClickZoomHandler; TwoFingersTouchZoomRotateHandler: typeof import("maplibre-gl").TwoFingersTouchZoomRotateHandler; NavigationControl: typeof import("maplibre-gl").NavigationControl; Popup: typeof import("maplibre-gl").Popup; Marker: typeof import("maplibre-gl").Marker; GeolocateControl: typeof import("maplibre-gl").GeolocateControl; LogoControl: typeof import("maplibre-gl").LogoControl; ScaleControl: typeof import("maplibre-gl").ScaleControl; FullscreenControl: typeof import("maplibre-gl").FullscreenControl; TerrainControl: typeof import("maplibre-gl").TerrainControl; GlobeControl: typeof import("maplibre-gl").GlobeControl; RasterTileSource: typeof import("maplibre-gl").RasterTileSource; RasterDEMTileSource: typeof import("maplibre-gl").RasterDEMTileSource; VideoSource: typeof import("maplibre-gl").VideoSource; EXTENT: 8192; Color: typeof import("maplibre-gl").Color; ColorArray: typeof import("maplibre-gl").ColorArray; ErrorEvent: typeof import("maplibre-gl").ErrorEvent; Event: typeof import("maplibre-gl").Event; Formatted: typeof import("maplibre-gl").Formatted; FormattedSection: typeof import("maplibre-gl").FormattedSection; MapLibreMap: typeof import("maplibre-gl").Map; NumberArray: typeof import("maplibre-gl").NumberArray; Padding: typeof import("maplibre-gl").Padding; Point: typeof import("maplibre-gl").Point; ResolvedImage: typeof import("maplibre-gl").ResolvedImage; VariableAnchorOffsetCollection: typeof import("maplibre-gl").VariableAnchorOffsetCollection; derefLayers(layers: import("maplibre-gl").LayerWithRef[]): import("maplibre-gl").LayerSpecification[]; diff(before: import("maplibre-gl").StyleSpecification, after: import("maplibre-gl").StyleSpecification): import("maplibre-gl").DiffCommand[]; typeOf(value: import("maplibre-gl").Value): import("maplibre-gl").Type; isExpression(expression: unknown): boolean; createExpression(expression: unknown, propertySpec?: import("maplibre-gl").StylePropertySpecification | null, globalState?: Record): import("maplibre-gl").Result>; isZoomExpression(expression: any): expression is import("maplibre-gl").ZoomConstantExpression<"source"> | import("maplibre-gl").ZoomDependentExpression<"source">; createPropertyExpression(expressionInput: unknown, propertySpec: import("maplibre-gl").StylePropertySpecification, globalState?: Record): import("maplibre-gl").Result>; normalizePropertyExpression(value: import("maplibre-gl").PropertyValueSpecification, specification: import("maplibre-gl").StylePropertySpecification, globalState?: Record): import("maplibre-gl").StylePropertyExpression; featureFilter(filter: import("maplibre-gl").FilterSpecification | void, globalState?: Record): import("maplibre-gl").FeatureFilter; convertFilter(filter: import("maplibre-gl").FilterSpecification, expectedTypes?: import("maplibre-gl").ExpectedTypes): import("maplibre-gl").ExpressionFilterSpecification; isFunction(value: any): boolean; createFunction(parameters: any, propertySpec: any): { kind: string; interpolationType: { name: string; }; interpolationFactor: any; zoomStops: any[]; evaluate({ zoom }: { zoom: any; }, properties: any): any; } | { kind: string; interpolationType: { name: string; base: any; }; interpolationFactor: any; zoomStops: any; evaluate: ({ zoom }: { zoom: any; }) => any; } | { kind: string; evaluate(_: any, feature: any): any; interpolationType?: undefined; interpolationFactor?: undefined; zoomStops?: undefined; }; convertFunction(parameters: any, propertySpec: import("maplibre-gl").StylePropertySpecification): any; supportsPropertyExpression(spec: import("maplibre-gl").StylePropertySpecification): boolean; groupByLayout(layers: import("maplibre-gl").LayerSpecification[], cachedKeys?: Record): import("maplibre-gl").LayerSpecification[][]; emptyStyle(): import("maplibre-gl").StyleSpecification; validateStyleMin: typeof import("maplibre-gl").validateStyleMin; format(style: any, space?: number): string; validate(options: { key: any; value: any; valueSpec: any; styleSpec: any; validateSpec?: any; style: any; objectElementValidators?: any; }): import("maplibre-gl").ValidationError[]; migrate(style: import("maplibre-gl").StyleSpecification): import("maplibre-gl").StyleSpecification; classifyRings(rings: import("maplibre-gl").RingWithArea[], maxRings?: number): import("maplibre-gl").RingWithArea[][]; ValidationError: typeof import("maplibre-gl").ValidationError; ParsingError: typeof import("maplibre-gl").ParsingError; EvaluationContext: typeof import("maplibre-gl").EvaluationContext; NullType: import("maplibre-gl").NullTypeT; ColorType: import("maplibre-gl").ColorTypeT; ProjectionDefinitionType: import("maplibre-gl").ProjectionDefinitionTypeT; FormattedType: import("maplibre-gl").FormattedTypeT; ProjectionDefinition: typeof import("maplibre-gl").ProjectionDefinition; Interpolate: typeof import("maplibre-gl").Interpolate; StyleExpression: typeof import("maplibre-gl").StyleExpression; ZoomConstantExpression: typeof import("maplibre-gl").ZoomConstantExpression; ZoomDependentExpression: typeof import("maplibre-gl").ZoomDependentExpression; StylePropertyFunction: typeof import("maplibre-gl").StylePropertyFunction; expressions: import("maplibre-gl").ExpressionRegistry; Step: typeof import("maplibre-gl").Step; FormatExpression: typeof import("maplibre-gl").FormatExpression; Literal: typeof import("maplibre-gl").Literal; CompoundExpression: typeof import("maplibre-gl").CompoundExpression; v8: any; expression: { StyleExpression: typeof import("maplibre-gl").StyleExpression; StylePropertyFunction: typeof import("maplibre-gl").StylePropertyFunction; ZoomConstantExpression: typeof import("maplibre-gl").ZoomConstantExpression; ZoomDependentExpression: typeof import("maplibre-gl").ZoomDependentExpression; createExpression: typeof import("maplibre-gl").createExpression; createPropertyExpression: typeof import("maplibre-gl").createPropertyExpression; isExpression: typeof import("maplibre-gl").isExpression; isExpressionFilter: (filter: any) => filter is import("maplibre-gl").ExpressionFilterSpecification; isZoomExpression: typeof import("maplibre-gl").isZoomExpression; normalizePropertyExpression: typeof import("maplibre-gl").normalizePropertyExpression; }; visit: { eachLayer: (style: import("maplibre-gl").StyleSpecification, callback: (_: import("maplibre-gl").LayerSpecification) => void) => void; eachProperty: (style: import("maplibre-gl").StyleSpecification, options: { paint?: boolean; layout?: boolean; }, callback: import("maplibre-gl").PropertyCallback) => void; eachSource: (style: import("maplibre-gl").StyleSpecification, callback: (_: import("maplibre-gl").SourceSpecification) => void) => void; }; latest: any; createVisibilityExpression: typeof import("maplibre-gl").createVisibilityExpression; interpolates: { color: typeof import("maplibre-gl").Color.interpolate; number: (from: number, to: number, t: number) => number; padding: typeof import("maplibre-gl").Padding.interpolate; numberArray: typeof import("maplibre-gl").NumberArray.interpolate; colorArray: typeof import("maplibre-gl").ColorArray.interpolate; variableAnchorOffsetCollection: typeof import("maplibre-gl").VariableAnchorOffsetCollection.interpolate; array: (from: T, to: T, t: number) => T; }; function: { convertFunction: typeof import("maplibre-gl").convertFunction; createFunction: typeof import("maplibre-gl").createFunction; isFunction: typeof import("maplibre-gl").isFunction; }; toString: typeof import("maplibre-gl").toString; }; utils: { polyline: typeof import("@mapbox/polyline"); }; get version(): string; get apiKey(): string | null; set apiKey(token: string | null); /** * Set the API key for the web SDK. * @param {string} token */ setApiKey(token: string | null): void; get apiKeyHeaderName(): string | null; set apiKeyHeaderName(name: string | null); setApiKeyHeaderName(name: string | null): void; get apiHost(): string | null; set apiHost(host: string | null); /** * Set the API host for the web SDK. * @param {string} host */ setApiHost(host: string | null): void; /** * Enable the inner request transform for NextBillion.ai maptiles. */ EnableNBTransform(): void; /** * Disable the inner request transform for NextBillion.ai maptiles. You only need to call this method if you want to use the maptiles not provided by nextbillion.ai. */ DisableNBTransform(): void; } declare const nextbillion: NextBillion; export default nextbillion; //# sourceMappingURL=index.d.ts.map