import React from 'react'; import { type Map, type MapOptions, type LngLatBoundsLike, type PaddingOptions } from 'maplibre-gl'; import { Source, Layer } from './type'; interface MapChildState { map?: Map; mapStyle?: MapOptions['style']; mapContainerRef?: React.RefObject; setSource: (source: Source) => void; getSource: (sourceKey: string) => Source | undefined; removeSource: (sourceKey: string) => void; isSourceDefined: (sourceKey: string) => boolean; isMapDestroyed: () => boolean; setBounds: (bounds: LngLatBoundsLike | undefined, padding: number | PaddingOptions | undefined, duration: number | undefined) => void; debug?: boolean; } export declare const MapChildContext: React.Context; interface SourceChildState { map?: Map; mapStyle?: MapOptions['style']; sourceKey?: string; isSourceDefined: (sourceKey: string) => boolean; isMapDestroyed: () => boolean; managed: boolean; setLayer: (layerKey: string, method: (layer: Layer | undefined) => Layer | undefined) => void; getLayer: (layerKey: string) => Layer | undefined; removeLayer: (layerKey: string) => void; debug?: boolean; } export declare const SourceChildContext: React.Context; export {};