import * as yup from 'yup'; declare module 'yup' { interface StringSchema { isPhone(msg: string): this; isPhoneWithCountryCode(code: string, msg: string): this; isBase64(msg: string): this; isCountryCode(msg: string): this; isCurrencyCode(msg: string): this; isValidDateRange(msg: string, fromDate: Date | string, maxRange: number, unit: string, format: string): this; isValidDateWithFormat(msg: string, format: string): this; } interface NumberSchema { isDecimal(maxDigitsBeforeDecimal: number, maxDigitsAfterDecimal: number, errorMessage: string): this; } interface DateSchema { } } export declare const miYup: { ref: typeof yup.ref; lazy: typeof yup.lazy; object: () => yup.ObjectSchema<{}, yup.AnyObject, {}, "">; array: () => yup.ArraySchema; string: () => yup.StringSchema; number: () => yup.NumberSchema; boolean: () => yup.BooleanSchema; requiredStr: (msg?: string) => yup.StringSchema; requiredNumber: (msg?: string) => yup.NumberSchema; requiredBoolean: (msg?: string) => yup.BooleanSchema, yup.AnyObject, undefined, "">; requiredObject: (msg?: string) => yup.ObjectSchema<{}, yup.AnyObject, {}, "">; requiredArr: (msg?: string) => yup.ArraySchema; requiredDecimal: (maxDigitsBeforeDecimal: number, maxDigitsAfterDecimal: number, msg?: string) => yup.NumberSchema; optionalStr: () => yup.StringSchema, yup.AnyObject, undefined, "">; optionalNumber: () => yup.NumberSchema, yup.AnyObject, undefined, "">; optionalBoolean: () => yup.BooleanSchema, yup.AnyObject, undefined, "">; optionalObject: () => yup.ObjectSchema, yup.AnyObject, {}, "">; optionalArr: () => yup.ArraySchema, yup.AnyObject, undefined, "">; optionalDecimal: (maxDigitsBeforeDecimal: number, maxDigitsAfterDecimal: number, msg?: string) => yup.NumberSchema, yup.AnyObject, undefined, "">; matchRegex: (reg: RegExp, msg?: string) => yup.StringSchema; strongPassword: (msg?: string) => yup.StringSchema; strongMobilePassword: (msg?: string) => yup.StringSchema; sixVerificationCode: (msg?: string) => yup.StringSchema; commonName: (msg?: string) => yup.StringSchema; personName: (msg?: string) => yup.StringSchema; username: (msg?: string) => yup.StringSchema; isEmail: (msg?: string) => yup.StringSchema; isUrl: (msg?: string) => yup.StringSchema; isPhone: (msg: string) => yup.StringSchema; requiredDate: (msg?: string) => yup.DateSchema; optionalDate: () => yup.DateSchema; isValidDateWithFormat: (format: string, msg?: string) => yup.StringSchema; isValidDateRange: ({ msg, fromDate, maxRange, unit, format, }: { msg: string; fromDate: Date | string; maxRange: number; unit: string; format: string; }) => yup.StringSchema; isAlphaNumeric: () => yup.StringSchema; isCountryCode: (msg?: string) => yup.StringSchema; isCurrencyCode: (msg?: string) => yup.StringSchema; isPhoneWithCountryCode: (code: string, msg?: string) => yup.StringSchema; }; export type FormSchema = yup.AnyObjectSchema | yup.AnySchema; export type StepperFormSchema = FormSchema | ((...params: any) => FormSchema);