export type UsePropertiesMapEventsResults = { runMapSearch: (params: { search?: any; bounds?: any; }) => Promise; }; /** * A hook that returns handlers to be used for map events in the properties map. * * @example * ```tsx * const { runMapSearch } = usePropertiesMapEvents(); * ``` * * The `runMapSearch` handler takes in the current map bounds and requests new * properties in that bounding box. * * @example * ``` * // used together with the React Leaflet useMapEvents hook * useMapEvents({ * dragend: (e) => { * runMapSearch(e.target.getBounds()); * } * }) * ``` */ export default function usePropertiesMapEvents(): UsePropertiesMapEventsResults; //# sourceMappingURL=use-properties-map-events.d.ts.map