export declare const isNil: (value: any) => boolean; export declare const getOffset: (el: any) => { top: number; left: number; }; /*** * Get a property of object safely * @param fn: function that gets object property * @param defaultValue: default value if something wrong * @example * getSafe(() => a.b.c.d, 'someValue') => d * getSafe(() => a.b[undefined].c.d, 'someValue') => 'someValue' * @returns {string|*} */ export declare const getObjectPropSafely: (fn: any, defaultValue?: any) => any; export declare const canUseDOM: boolean; export declare function calculateOpacityColor(hex: any, opacity: any): string | undefined; export declare const formatDateTime: (value: any, pattern: any, locale?: string) => any; /** * @param {object} field - (Dimension / Object) * @param {string} defaultResult - default value return * @param {boolean} isPriorityAliasSemanticType - default false (Ex: has aliasSemanticType then priority return it) * @param {boolean} isPriorityOriginalDataType - default false * @returns semanticType * Function return semanticDataType of Dimension/Metric helper feature change format type Dimension/Metric */ export declare function hexToRgb(hex: any): { r: number; g: number; b: number; a: number; } | { r: number; g: number; b: number; a?: undefined; } | null | undefined; export declare const setLocalStorage: (key: any, value: any) => void; export declare const deleteLocalStorage: (key: any) => void; export declare const random: (number: any) => string | undefined; export declare const memoization: (func: any) => ((args: any) => any) | undefined; /*** * Round target number to the closest provided number * @example roundNumberBy(1)(0.4) -> 1 * @example roundNumberBy(120)(140) -> 120 * @param by * @returns {Function} */ export declare const roundNumberBy: (by?: number) => (value: any) => number | undefined; export declare const getWidthOfText: (str: any, fontSize: any, fontFamily: any) => number | undefined; /*** * Find the base when divide for 10 * @example findBaseDivisorBy10(6) -> 6 * @example findBaseDivisorBy10(14) -> 10 * @example findBaseDivisorBy10(130) -> 100 * @example findBaseDivisorBy10(2400) -> 1000 * @param value * @returns {number|*} */ export declare const findBaseDivisorBy10: (value: any) => any; export declare const getSizeOfText: (str?: string, fontSize?: string, fontFamily?: string) => { height: number; width: number; } | undefined; export declare const removeAccent: (str: any) => any;