import { DateInputProps } from "@lifesg/react-design-system/date-input"; import { IYupValidationRule, TComponentOmitProps } from "../../frontend-engine"; import { IBaseFieldSchema } from "../types"; import { IDaysRangeRule, IWithinDaysRangeRule } from "../../../context-providers"; export interface IDateFieldValidationRule extends IYupValidationRule { dateFormat?: boolean | undefined; future?: boolean | undefined; past?: boolean | undefined; notFuture?: boolean | undefined; notPast?: boolean | undefined; minDate?: string | undefined; maxDate?: string | undefined; excludedDates?: string[] | undefined; withinDays?: Omit | undefined; beyondDays?: Omit | undefined; } export interface IDateFieldSchema extends IBaseFieldSchema<"date-field", V, IDateFieldValidationRule>, TComponentOmitProps { useCurrentDate?: boolean | undefined; dateFormat?: string | undefined; }