import { NullOrUndefined } from '../../kit/internal/types';
export declare const isNumber: (data: unknown) => data is number;
export declare const isObject: (data: unknown) => boolean;
export declare const isString: (data: unknown) => data is string;
export declare const alphaNumericSorter: (a: NullOrUndefined<string | number>, b: NullOrUndefined<string | number>) => number;
export declare const toHtmlId: (str: string) => string;
export declare const truncate: (str: string, maxLength?: number, suffix?: string) => string;
export declare const generateAlphaNumeric: (length?: number, chars?: string) => string;
export declare const generateUUID: () => string;
export declare const clone: <T>(data: T, deep?: boolean) => T;
export declare const formatDatetime: (datetime: string, options?: {
    format?: string;
    inputUTC?: boolean;
    outputUTC?: boolean;
}) => string;
export declare const dateTimeStringSorter: (a: NullOrUndefined<string>, b: NullOrUndefined<string>) => number;
export declare const numericSorter: (a: NullOrUndefined<number>, b: NullOrUndefined<number>) => number;
export declare const ansiToHtml: (ansi: string) => string;
/** titlecase a sentence */
export declare const capitalize: (str: string) => string;
export declare const findParentByClass: (element: HTMLElement, className: string) => Element;
export declare const glasbeyColor: (sequence: number) => string;
export declare const getTimeTickValues: uPlot.Axis.Values;
export declare const humanReadableNumber: (num: number, precision?: number) => string;
export declare const findInsertionIndex: (sortedArray: number[], value: number, compareFn?: (a: number, b: number) => number) => number;
export declare function distance(x0: number, y0: number, x1: number, y1: number): number;
export interface HslColor {
    h: number;
    l: number;
    s: number;
}
interface RgbaColor {
    a?: number;
    b: number;
    g: number;
    r: number;
}
export declare const rgba2str: (rgba: RgbaColor) => string;
export declare const rgbaFromGradient: (rgba0: RgbaColor, rgba1: RgbaColor, percent: number) => RgbaColor;
export declare const hex2rgb: (hex: string) => RgbaColor;
export declare const str2rgba: (str: string) => RgbaColor;
export declare const str2hsl: (str: string) => HslColor;
export declare const hex2hsl: (hex: string) => HslColor;
export declare const rgba2hsl: (rgba: RgbaColor) => HslColor;
export declare const hsl2str: (hsl: HslColor) => string;
export declare const ensureArray: <T>(data: T | T[]) => T[];
export {};
//# sourceMappingURL=functions.d.ts.map