import { RegionWiseBranchesType } from "../types/regionWiseBranch"; declare const util: { /** * @return true if given object is empty */ isEmptyObject: (objectName: object) => boolean; /** * @return true if given array is empty */ isEmptyArray: (arrayName: Array) => boolean; /** * Remove duplicate items from array * @param arr array of items with duplicate * @returns Duplicate removed array */ removeDuplicate: (arr: Array) => any[]; /** * Remove duplicate items from array * @param arr array of items with duplicate * @param prop key name to identify the duplicate * @returns Duplicate removed array */ removeDuplicateWithKey: (arr: Array, prop: string) => any[]; /** * get sorted region as [s,w,e,n,c] * @param obj region as key and array of branches * @returns sorted region object */ regionSort: (obj: RegionWiseBranchesType) => { [k: string]: any; }; getLatLng: (location: string) => number[]; /** Format date with Moment * @param date: string * @param format: string * @returns Date string by given format */ formatDate: (date: string, format?: string) => string; percentageCalculator: (total: number, value: number) => number; roundedBy50: (value: number) => number; getLastNDaysArray: (n: number) => string[]; formatDateDDMMYY: (dateStr: string) => string; debounce void>(func: T, delay?: number): (this: ThisParameterType, ...args: Parameters) => void; }; export default util;