import * as React from 'react'; import type { StyleSpecification, LayerSpecification } from 'maplibre-gl'; /** * We are omitting the `sources`, `layers`, `verison` properties, and re-adding them with some constraint * 1. Changing `sources` and `layers` from optional to required * 2. Limiting `sources` type to `VectorSource` and `RasterSource` for MVP * 3. `version` property is specific to MapLibre and is always an 8. We will add this internally in the * Viz map component and not let the consumers bother */ export interface BaseTileConfig extends Omit { name: string; key?: string; theme?: 'light' | 'dark'; sources?: { [sourceName: string]: Record; }; layers?: LayerSpecification[]; version?: number; } export interface MapContextInterface { defaultTileConfig?: BaseTileConfig[]; customTileConfig?: BaseTileConfig[]; mapboxAccessToken?: string; } declare const MapContext: React.Context; export declare const MapContextProvider: React.Provider; export declare const MapContextConsumer: React.Consumer; export default MapContext; export declare const testTileConfig: BaseTileConfig[];