import { createRule, type ValidationContext } from '../core'; type BaseMaxValidationTypes = number | string | unknown[]; type CommonThreshold = number | Date; type MaxParams = { /** * Сообщение ошибки */ getMessage?: (threshold: CommonThreshold, value: TValidationType, ctx: ValidationContext) => string; }; /** * Проверяет значение на соответствие максимуму. Работает с: string, array, Date, number * @param threshold - верхний доступный порог value * @example * ```ts * string(max(22)); * * number(max(22)); * * array(max(2))); * * date(max(new Date()))); * ``` */ export declare function max = {}>(threshold: Date, params?: MaxParams): ReturnType>; export declare function max = {}>(threshold: number, params?: MaxParams): ReturnType>; export {};