import React from 'react'; import type { MapDrawMode } from '../map/use-map-drawing'; import type { MapOverlayPosition } from '../map/map.types'; export interface MapDrawToolbarProps extends Omit, 'onChange'> { /** @default ['polygon', 'circle'] */ modes?: MapDrawMode[]; /** The armed mode, or `null` when the tool is idle. */ active: MapDrawMode | null; onChange: (mode: MapDrawMode | null) => void; labels?: Partial>; /** @default 'overlay' */ variant?: 'overlay' | 'inline'; /** @default 'top-left' */ position?: MapOverlayPosition; /** @default "Drawing tools" */ ariaLabel?: string; } /** * Arms and disarms the geofence drawing tool. * * @description * Includes an explicit idle button rather than relying on the user clicking the * armed tool again — a drawing mode nobody can see they are in is how stray * shapes get created. * * @ai-rules * 1. Keep `active` in the parent and pass it to both this toolbar and ``. * 2. Set it back to `null` inside `onComplete`, or the next click starts another shape. * 3. Pair the completed shape with `pointsInShape` to answer containment questions. */ export declare const MapDrawToolbar: React.ForwardRefExoticComponent>;