import type { ReactNode } from 'react'; import type { ModalFuncProps as AntdModalFuncProps } from 'antd'; import type { TypeOpen as AntdMessageTypeOpen } from 'antd/lib/message/interface'; import type { ArgsProps as AntdNotificationArgsProps } from 'antd/lib/notification/interface'; import type { ImagePreviewProps } from '../image-preview'; export type PreviewImageOption = ImagePreviewProps; declare const Util: { Loading: { start(node?: ReactNode): void; stop(): void; }; Modal: { info: (props: string | AntdModalFuncProps) => { destroy: () => void; update: (configUpdate: import("antd/es/modal/confirm").ConfigUpdate) => void; } | undefined; success: (props: string | AntdModalFuncProps) => { destroy: () => void; update: (configUpdate: import("antd/es/modal/confirm").ConfigUpdate) => void; } | undefined; error: (props: string | AntdModalFuncProps) => { destroy: () => void; update: (configUpdate: import("antd/es/modal/confirm").ConfigUpdate) => void; } | undefined; warning: (props: string | AntdModalFuncProps) => { destroy: () => void; update: (configUpdate: import("antd/es/modal/confirm").ConfigUpdate) => void; } | undefined; confirm: (props: string | AntdModalFuncProps) => { destroy: () => void; update: (configUpdate: import("antd/es/modal/confirm").ConfigUpdate) => void; } | undefined; }; message: { info: AntdMessageTypeOpen; success: AntdMessageTypeOpen; error: AntdMessageTypeOpen; warning: AntdMessageTypeOpen; loading: AntdMessageTypeOpen; }; notification: { info: (props: string | AntdNotificationArgsProps) => void; success: (props: string | AntdNotificationArgsProps) => void; error: (props: string | AntdNotificationArgsProps) => void; warning: (props: string | AntdNotificationArgsProps) => void; }; previewImage: (option: PreviewImageOption) => void; getRandomString(maxLength?: number | undefined): string; getByteLength(str?: string | undefined): number; Math: { add: (...args: (string | number)[]) => number; sub: (...args: (string | number)[]) => number; mul: (...args: (string | number)[]) => number; div: (...args: (string | number)[]) => number; }; Date: { format(time: string | number | Date | import("dayjs").Dayjs | null | undefined, formatter?: string | undefined): string; N: string; n(time: string | number | Date | import("dayjs").Dayjs | null | undefined): string; NY: string; ny(time: string | number | Date | import("dayjs").Dayjs | null | undefined): string; NYR: string; nyr(time: string | number | Date | import("dayjs").Dayjs | null | undefined): string; SFM: string; sfm(time: string | number | Date | import("dayjs").Dayjs | null | undefined): string; NYRSFM: string; nyrsfm(time: string | number | Date | import("dayjs").Dayjs | null | undefined): string; NYRSF: string; nyrsf(time: string | number | Date | import("dayjs").Dayjs | null | undefined): string; NYR000: string; nyr000(time: string | number | Date | import("dayjs").Dayjs | null | undefined): string; NYREND: string; nyrend(time: string | number | Date | import("dayjs").Dayjs | null | undefined): string; }; Number: { format(num?: string | number | undefined, decimals?: number | undefined, zeroPadding?: boolean | undefined, thousands?: boolean | undefined): string; toFixed(num?: string | number | undefined, decimals?: number | undefined): string; repair(obj: any): string; }; Money: { format(number: any, decimals?: number | undefined): string; thousands(number: any, decimals?: number | undefined): string; thousandsNonFillZero(number: any, decimals?: number | undefined): string; y2w(number: any, decimals?: number | undefined): string; f2y(number: any, decimals?: number | undefined): string; }; blankPlaceholder: string; isIdCard: (idCard: string) => idCard is string; blank(obj?: any, formatter?: ((res: any) => string) | undefined): string; delay(wait?: number | undefined): Promise; filterEmpty(arr: (T | null | undefined)[]): T[]; arrayToTree = any>(array?: T_1[] | undefined, parseItem?: ((node: T_1) => T_1) | undefined, keyMap?: import("packages/yolk/lib/util").ArrayToTreeKeyMap | undefined): T_1[]; isBlob(obj?: any): obj is Blob; isFile(obj?: any): obj is File; getCurrentDirRequireModuleMapping(): { [key: string]: T_2; }; isEmpty: (obj?: any) => boolean; }; export default Util;