/// <reference types="react" />
import dayjs from 'dayjs';
export interface Obj {
  [key: string]: any;
}
export declare const guid: () => string;
export declare const throttle: (
  func: any,
  wait: any,
  options?: any,
) => (this: any, ...args: any[]) => void;
/**
 * 防抖
 * @param {*} fn 将执行的函数
 * @param {*} time 防抖规定的时间
 */
export declare const debounce: (
  fn: Function,
  delay?: number,
) => (...args: any) => void;
export declare const sleep: (ms?: number) => Promise<unknown>;
export declare const elimination: (arr: Array<any>) => any[];
export declare const rounded: (n: number, d: number) => number;
export declare const randomHex: () => string;
export declare const trueTypeOf: (obj: any) => string;
export declare const allBoolean: (
  arr: Array<any>,
  fn?: BooleanConstructor,
) => boolean;
export declare const dropWhile: (arr: Array<any>, fun: Function) => any[];
export declare const fill0: (value: string | number, len?: number) => string;
export declare const someFn: (num: number, fn?: (i: any) => any) => unknown;
export declare const includes: (str: string, value: string) => boolean;
export declare const randomString: () => string;
export declare const truncateString: (string: string, length: number) => string;
export declare const extendClone: {
  <T extends {}, U>(target: T, source: U): T & U;
  <T_1 extends {}, U_1, V>(target: T_1, source1: U_1, source2: V): T_1 &
    U_1 &
    V;
  <T_2 extends {}, U_2, V_1, W>(
    target: T_2,
    source1: U_2,
    source2: V_1,
    source3: W,
  ): T_2 & U_2 & V_1 & W;
  (target: object, ...sources: any[]): any;
};
export declare const deepClone: (data: any) => any;
export declare const to: (promise: Promise<any>) => Promise<any>;
export declare const sync: (fn: Function, ...args: any[]) => Promise<any>;
export declare const init_date: (date?: any, format?: string) => string;
export declare const init_time: (time?: number) => number | dayjs.Dayjs;
export declare const less_time: (time1: String, time2: String) => number;
export declare const am_time: (date?: any) => number;
export declare const pm_time: (date?: any) => number;
export declare const trim: (value: string) => string;
export declare const replaceAll: (
  text: string,
  repstr: string,
  newstr: string,
) => string;
export declare const filePrice: (obj: number) => number;
export declare const rmoney: (money: string) => string;
export declare function isDef<T>(val: T): val is NonNullable<T>;
export declare const isNotEmpty: (arr: Array<any>) => boolean;
export declare function getZIndexStyle(
  zIndex?: string | number,
): import('react').CSSProperties;
export declare function isNumeric(val: string): boolean;
export declare function isNaN(val: number): val is typeof NaN;
export declare function ToPx(val: number | string): string | number;
