import { ConfigService } from '@nestjs/config'; /** * @description: 随机n位数字码 * @param {*} digits */ export declare const randomNumCode: (digits?: number) => string; /** * @description: 获取应用配置 * @return ApplicationConfig */ export declare const getAppConfigByKey: (configService: ConfigService, propertyPath: keyof ApplicationConfig) => T; export declare const getAppConfigByKeyArr: (configService: ConfigService, propertyPaths: (keyof ApplicationConfig)[]) => T; export declare const keyOfRedisEmailCode: (email: string, code: string) => string; export declare function md5(str: string): Promise; export declare const downloadRemoteFile: (url: string, dest: string) => Promise; export declare const paddingPath2Url: (data: any[], keys: string[]) => any[]; export declare function isInEnum(value: any, inputEnum: T): boolean; export declare function isNotInEnum(value: any, inputEnum: T): boolean;