export interface CustomWindow extends Window { requestConfig: { withCredentials: boolean; getToken: () => Promise; }; authConfig: { url: string; client_id: string; client_secret: string; password_min: number; password_max: number; company: number; }; } import RAFUtils from './raf'; export declare const date: { formatDate(date: string | number | Date, format?: string): string; isBigMonth(month: number): boolean; }; export declare const array: { deepFlatten(list: T[], key?: string): T[]; deepOrder(props: import("./array").DeepOrderProps): T_1[]; }; export declare const json: { reverseObj(obj: { [x: string]: string | number; }): { [x: string]: string | number; }; removeEmpty(params: object): {}; }; export declare const regex: { isPhone: (value: string) => boolean; isTelephone: (value: string) => boolean; isEmail: (value: string) => boolean; isNumber: (value: string) => boolean; isProvince: (value: string) => boolean; isCity: (value: string) => boolean; containNumbers: (param: string) => boolean; }; export declare const string: { fillZero(val: string | number): string | number; textEllipsis(text: string, length: number): string; getLastSubstring(sourceStr?: string, splitStr?: string): string; valueToString(value: string | number | object | (string | number | object)[]): string; copyText(text: string): void; }; export declare const url: { getFileType: (name?: string) => string; isSupportPreview(name?: string): boolean; isImg(name?: string): boolean; isPdf(name?: string): boolean; getUrlQuery(name?: string): any; setUrlQuery(params: object): string; createDownloadTask(fileName: string, content: string): void; }; export declare const auth: { getParams: () => import("./auth").AuthParamsInterface; validateAuthParams: (params: import("./auth").AuthParamsInterface) => void; SMS_TYPE: { register: number; changePassword: number; login: number; }; CLIENT_TYPE: { app: number; webPC: number; }; passwordLoginWithUsername(params: { username: string; password: string; }, authParams?: import("./auth").AuthParamsInterface): Promise>; passwordLoginWithPhone(params: { phone: string; password: string; }, authParams?: import("./auth").AuthParamsInterface): Promise>; faceLogin(params: { face: string; client: number; identification: string; }, authParams?: import("./auth").AuthParamsInterface): Promise>; smsLogin(params: { phone: string; code: string; }, authParams?: import("./auth").AuthParamsInterface): Promise>; passwordRegister(params: { username: string; password: string; }, authParams?: import("./auth").AuthParamsInterface): Promise>; smsRegister(params: { mobile: string; password: string; verification_code: string; }, authParams?: import("./auth").AuthParamsInterface): Promise>; sendSmsCode(params: { mobile: string; type: number; }, authParams?: import("./auth").AuthParamsInterface): Promise>; resetPassword(params: { phone: string; newPassword: string; verificationCode: string; }, authParams?: import("./auth").AuthParamsInterface): Promise>; updatePassword(params: { access_token: string; newPassword: string; oldPassword: string; }, authParams?: import("./auth").AuthParamsInterface): Promise>; }; export declare const RAF: typeof RAFUtils; export declare const request: { get: (url: string, data?: object, needLogin?: boolean) => Promise>; put: (url: string, data?: object, needLogin?: boolean) => Promise>; delete: (url: string, data?: object, needLogin?: boolean) => Promise>; postForm: (url: string, data?: object, params?: object, needLogin?: boolean) => Promise>; postJSON: (url: string, data?: object, params?: object, needLogin?: boolean) => Promise>; postFile: (url: string, data: FormData, params?: object) => Promise>; authGet: (url: string, data?: object) => Promise>; authForm: (url: string, data?: object) => Promise>; }; export declare const validation: { phoneValidator: (_: unknown, value: string, callback: (message?: string) => void) => void; compareToFirstPassword: (firstPassword?: string) => (_: unknown, value: string, callback: (msg?: string) => void) => void; }; declare const tdUtils: { date: { formatDate(date: string | number | Date, format?: string): string; isBigMonth(month: number): boolean; }; array: { deepFlatten(list: T[], key?: string): T[]; deepOrder(props: import("./array").DeepOrderProps): T_1[]; }; json: { reverseObj(obj: { [x: string]: string | number; }): { [x: string]: string | number; }; removeEmpty(params: object): {}; }; regex: { isPhone: (value: string) => boolean; isTelephone: (value: string) => boolean; isEmail: (value: string) => boolean; isNumber: (value: string) => boolean; isProvince: (value: string) => boolean; isCity: (value: string) => boolean; containNumbers: (param: string) => boolean; }; string: { fillZero(val: string | number): string | number; textEllipsis(text: string, length: number): string; getLastSubstring(sourceStr?: string, splitStr?: string): string; valueToString(value: string | number | object | (string | number | object)[]): string; copyText(text: string): void; }; url: { getFileType: (name?: string) => string; isSupportPreview(name?: string): boolean; isImg(name?: string): boolean; isPdf(name?: string): boolean; getUrlQuery(name?: string): any; setUrlQuery(params: object): string; createDownloadTask(fileName: string, content: string): void; }; auth: { getParams: () => import("./auth").AuthParamsInterface; validateAuthParams: (params: import("./auth").AuthParamsInterface) => void; SMS_TYPE: { register: number; changePassword: number; login: number; }; CLIENT_TYPE: { app: number; webPC: number; }; passwordLoginWithUsername(params: { username: string; password: string; }, authParams?: import("./auth").AuthParamsInterface): Promise>; passwordLoginWithPhone(params: { phone: string; password: string; }, authParams?: import("./auth").AuthParamsInterface): Promise>; faceLogin(params: { face: string; client: number; identification: string; }, authParams?: import("./auth").AuthParamsInterface): Promise>; smsLogin(params: { phone: string; code: string; }, authParams?: import("./auth").AuthParamsInterface): Promise>; passwordRegister(params: { username: string; password: string; }, authParams?: import("./auth").AuthParamsInterface): Promise>; smsRegister(params: { mobile: string; password: string; verification_code: string; }, authParams?: import("./auth").AuthParamsInterface): Promise>; sendSmsCode(params: { mobile: string; type: number; }, authParams?: import("./auth").AuthParamsInterface): Promise>; resetPassword(params: { phone: string; newPassword: string; verificationCode: string; }, authParams?: import("./auth").AuthParamsInterface): Promise>; updatePassword(params: { access_token: string; newPassword: string; oldPassword: string; }, authParams?: import("./auth").AuthParamsInterface): Promise>; }; RAF: typeof RAFUtils; request: { get: (url: string, data?: object, needLogin?: boolean) => Promise>; put: (url: string, data?: object, needLogin?: boolean) => Promise>; delete: (url: string, data?: object, needLogin?: boolean) => Promise>; postForm: (url: string, data?: object, params?: object, needLogin?: boolean) => Promise>; postJSON: (url: string, data?: object, params?: object, needLogin?: boolean) => Promise>; postFile: (url: string, data: FormData, params?: object) => Promise>; authGet: (url: string, data?: object) => Promise>; authForm: (url: string, data?: object) => Promise>; }; validation: { phoneValidator: (_: unknown, value: string, callback: (message?: string) => void) => void; compareToFirstPassword: (firstPassword?: string) => (_: unknown, value: string, callback: (msg?: string) => void) => void; }; }; export default tdUtils;