import { DataDrivenPropertyValueSpecification, ExpressionSpecification } from 'maplibre-gl'; import { ColorRamp } from '../ColorRamp'; import { DataDrivenStyle, PropertyValues, ZoomNumberValues, ZoomStringValues } from './vectorlayerhelpers'; export type ColorPalette = [string, string, string, string]; export declare const colorPalettes: Array; export declare function getRandomColor(): string; export declare function generateRandomSourceName(): string; export declare function generateRandomLayerName(): string; /** * Linera interpolation to find a value at an arbitrary zoom level, given a list of tuple zoom-value */ export declare function lerpZoomNumberValues(znv: ZoomNumberValues, z: number): number; export declare function paintColorOptionsToPaintSpec(color: ZoomStringValues): DataDrivenPropertyValueSpecification; export declare function rampedOptionsToLayerPaintSpec(ramp: ZoomNumberValues): DataDrivenPropertyValueSpecification; export declare function computeRampedOutlineWidth(lineWidth: number | ZoomNumberValues, outlineWidth: number | ZoomNumberValues): number | DataDrivenPropertyValueSpecification; export declare function rampedPropertyValueWeight(ramp: PropertyValues, property: string): DataDrivenPropertyValueSpecification; /** * Create a dash array from a string pattern that uses underscore and whitespace characters */ export declare function dashArrayMaker(pattern: string): Array; export declare function colorDrivenByProperty(style: DataDrivenStyle, property: string): DataDrivenPropertyValueSpecification; export declare function radiusDrivenByProperty(style: DataDrivenStyle, property: string, zoomCompensation?: boolean): DataDrivenPropertyValueSpecification; export declare function radiusDrivenByPropertyHeatmap(style: PropertyValues, property: string, zoomCompensation?: boolean): DataDrivenPropertyValueSpecification; /** * Turns a ColorRamp instance into a MapLibre style for ramping the opacity, driven by a property */ export declare function opacityDrivenByProperty(colorramp: ColorRamp, property: string): DataDrivenPropertyValueSpecification; export declare function heatmapIntensityFromColorRamp(colorRamp: ColorRamp, steps?: number): ExpressionSpecification;