import L from 'leaflet'; import type { MyMap } from 'map-sdk-leaflet/es/sdk/ShipxyAPISDK'; interface WeatherLabelOptions extends L.LayerOptions { size?: number; direction?: number; stroke?: boolean; color?: string; weight?: number; text?: string; textOptions?: { repeat?: boolean; fillColor?: string; attributes?: Record; below?: boolean; dataAnchor?: string; offset?: number; center?: boolean; }; } declare class WeatherLabel extends L.Path { private _latlng; private _size; private _direction; private _windSymbol; private _text; private _textOptions; private _textNode; constructor(latlng: L.LatLngLiteral | L.LatLng, options?: WeatherLabelOptions); setColor(color: string): this; setFillOpacity(fillOpacity: number): this; setOpacity(opacity: number): this; setWeight(weight: number): this; setFill(fill: boolean): this; setStroke(stroke: boolean): this; setFillColor(fillColor: string): this; protected _project(): void; protected _update(): void; protected _setPath(): void; setLatLng(latlng: L.LatLngLiteral | L.LatLng): this; setDirection(direction: number): this; private _textRedraw; onAdd(map: MyMap): this; setText(text: string, options?: WeatherLabelOptions['textOptions']): this; getLatLng(): L.LatLng; private _rotate; private _rotateAllPoints; private _transformAllPointsToView; private _createPathFromPoints; private _getViewAngleFromModel; private _createWindPathString; getPathString(): string; static create(latlng: L.LatLngLiteral | L.LatLng, options?: WeatherLabelOptions): WeatherLabel; } declare const weatherLabel: (latlng: L.LatLngLiteral | L.LatLng, options?: WeatherLabelOptions | undefined) => WeatherLabel; export { WeatherLabel, weatherLabel };