/** * Utilities */ import { Dict, ColorRange } from './types'; import chroma, { Color } from 'chroma-js'; export declare function noop(...args: any[]): void; export declare function devNoop(...args: any[]): void; export declare function isEmpty(val: any): boolean; export declare function capitalize(str: string): string; export declare const get: (model: Dict, key?: string) => any; export declare const set: (model: Dict, key: string, val: any) => void; export declare function safeChroma(color: string | number | Color, fallback?: string | number | Color): chroma.Color; export declare function chooseGoodTextColor(textColorAlternativesList: string[], backgroundColor: string): Color[]; export declare function isDarkColor(hexColorCode: string): boolean; export declare function validateColorRange(colorRange: ColorRange): { value: number; color: string; }[]; /** * Convert proportional segment sizes into cumulative break values for react-slider. * The final 100% marker is omitted when there are multiple segments (react-slider * only needs internal breakpoints). A single segment returns an empty array. */ export declare function toCumulativeBreaks(values: number[]): number[]; /** * Convert cumulative break values back into proportional segment sizes. * Appends the implicit 100% end marker before calculating differences. * Does not mutate the input array. */ export declare function fromCumulativeBreaks(values: number[]): number[];