import { PureComponent, type ContextType } from 'react'; import MapContext from '../../map-context.js'; type TransitLayerState = { transitLayer: google.maps.TransitLayer | null; }; export type TransitLayerProps = { /** This callback is called when the transitLayer instance has loaded. It is called with the transitLayer instance. */ onLoad?: ((transitLayer: google.maps.TransitLayer) => void) | undefined; /** This callback is called when the component unmounts. It is called with the transitLayer instance. */ onUnmount?: ((transitLayer: google.maps.TransitLayer) => void) | undefined; }; declare function TransitLayerFunctional({ onLoad, onUnmount, }: TransitLayerProps): null; export declare const TransitLayerF: import("react").MemoExoticComponent; export declare class TransitLayer extends PureComponent { static contextType: import("react").Context; context: ContextType; state: TransitLayerState; setTransitLayerCallback: () => void; componentDidMount(): void; componentWillUnmount(): void; render(): null; } export default TransitLayer;