import moment, { OpUnitType } from 'dayjs'; import { FormItemProps } from 'antd/lib/form'; type Rule = FormItemProps['rules'][0]; /** built-in validation type, available options: https://github.com/yiminghe/async-validator#type */ export declare const commonRules: Readonly<{ [key: string]: Rule; }>; export declare const genRules: { minString(min: number, noSpace?: boolean): Rule; momentDay(required?: boolean): Rule; }; export declare const transforms: { momentToDateUnit(unit: OpUnitType, value: moment.Dayjs): number; momentToDate(value: moment.Dayjs): number; momentToDayString(value: moment.Dayjs): string; dateToMoment(value: any): moment.Dayjs; }; interface ValidatorResult { success: boolean; message?: string; info?: any; } export declare class CommonValidators { static idCard: (value: string) => ValidatorResult; } export {};