/** Small prop coercions + colour/geometry helpers shared by the engine adapters. */ import type { LatLng } from "./index.js"; /** Default `coord` formatter — a compact decimal lat/long. Consumers override via * {@link MapAdapter.setCoordFormat} (e.g. sigwx supplies its own `formatLatLng`). Lives here (a leaf) * rather than in `widget.ts` so `index.ts` can re-export it without an index↔widget import cycle. */ export declare function defaultCoordFormat(ll: LatLng): string; /** Read a numeric prop, falling back to `d` when absent/not a number. */ export declare function num(v: unknown, d: number): number; /** Read a string prop, falling back to `""` (or `d`) when absent/not a string. */ export declare function str(v: unknown, d?: string): string; /** Read a boolean prop (truthy === true). */ export declare function bool(v: unknown): boolean; /** Degrees → radians (icon rotation is degrees, clockwise, on every engine). */ export declare function deg2rad(deg: number): number; /** * Convert a hex colour (`#rgb` / `#rrggbb`) + opacity to `rgba(…)` (OpenLayers * and canvas have no separate fill-opacity). Non-hex colour forms (named, rgb, * rgba, hsl…) are returned unchanged. */ export declare function rgba(color: string, opacity: number): string; export declare function wrapLabel(text: string, maxPx: number, fontPx: number): string; //# sourceMappingURL=coerce.d.ts.map