/** * MapLayers - Native Google Maps layer components. * * Native Google Maps overlay layers that can be added to a map instance. * These layers are used inside the `Map` component via the `layers` prop. * * Available layer types: * - `traffic`: Real-time traffic overlay * - `transit`: Public transit routes overlay * - `bicycling`: Bicycle route overlay */ export type MapLayerType = 'traffic' | 'transit' | 'bicycling'; export interface MapLayersConfig { traffic?: boolean; transit?: boolean; bicycling?: boolean; } /** * Hook for managing Google Maps overlay layers. * * @param map - The Google Maps instance to attach layers to * @param layers - Configuration object specifying which layers to display */ export declare function useMapLayers(map: google.maps.Map | null, layers: MapLayersConfig): void; /** * Exemplo de uso: * * ```tsx * import { Map } from '../map'; * import { useState } from 'react'; * * function MyMapComponent() { * const [layers, setLayers] = useState({ * traffic: false, * transit: false, * bicycling: false, * }); * * return ( * * ); * } * ``` */