import { Gauge } from '../types/Gauge'; import { GaugeComponentProps } from '../types/GaugeComponentProps'; export declare const calculatePercentage: (minValue: number, maxValue: number, value: number) => number; /** * Convert a percentage (0-1) back to a value within the min/max range */ export declare const percentToValue: (percent: number, minValue: number, maxValue: number) => number; export declare const isEmptyObject: (obj: any) => boolean; export declare const mergeObjects: (obj1: any, obj2: Partial) => any; export declare const percentToRad: (percent: number, angle: number) => number; export declare const floatingNumber: (value: number, maxDigits?: number) => number; export declare function normalize(value: number, min: number, max: number): number; export declare const degToRad: (degrees: number) => number; export declare const radToDeg: (radians: number) => number; export declare const getCurrentGaugePercentageByValue: (value: number, gauge: GaugeComponentProps) => number; export declare const getCurrentGaugeValueByPercentage: (percentage: number, gauge: Gauge) => number; export declare const camelCaseToKebabCase: (str: string) => string; /** * Shallow comparison of two values. More performant than JSON.stringify for prop comparisons. * Handles primitives, arrays (shallow), and objects (shallow, one level deep for nested objects). */ export declare const shallowEqual: (a: any, b: any) => boolean;