import dayjs from 'dayjs'; import { TReferenceProps } from '../../..'; import { IDateProps, TDateValidatorResult } from '../_types'; export interface IIsMinMaxProps { /** * Minimum date. */ min?: number | string | Date; /** * Delta added to `min` (eg: you have a `min` of `1998-01-14` and a `minDelta` of `[[1, 'day']]`, then the minimal date will be `1998-01-15`). You can also use negative value. This property is useful when you are using refs. */ minDelta?: [value: number, type: dayjs.ManipulateType][]; /** * Whether the minimal value should be accepted. * * @default true */ minIncluded?: boolean; /** * Maximum date. */ max?: number | string | Date; /** * Delta added to `max` (eg: you have a `min` of `1998-01-14` and a `minDelta` of `[[1, 'day']]`, then the minimal date will be `1998-01-15`). You can also use negative value. This property is useful when you are using refs. */ maxDelta?: [value: number, type: dayjs.ManipulateType][]; /** * Whether the maximal value should be accepted. * * @default true */ maxIncluded?: boolean; } /** * Check if the date corresponds to the min/max constraints. */ export declare const isMinMax: (props?: TReferenceProps & IDateProps) => TDateValidatorResult;