import type { ValidatorConstraintInterface, ValidationArguments, ValidationOptions } from 'class-validator'; export interface IsTimestampValidationOptions extends ValidationOptions { /** * Whether to allow the special infinity timestamp strings: `infinity`, `+infinity`, and `-infinity`. * * @default true */ allowInfinity?: boolean; isAfter?: (dto: object) => string | null | undefined; isBefore?: (dto: object) => string | null | undefined; isSameOrAfter?: (dto: object) => string | null | undefined; isSameOrBefore?: (dto: object) => string | null | undefined; } /** Validate that the value is a string of format ISO8601 or (+-)infinity */ export declare function IsTimestamp(validationOptions?: IsTimestampValidationOptions): PropertyDecorator; export declare class IsTimestampValidator implements ValidatorConstraintInterface { validate(dateValue: unknown, args: ValidationArguments): boolean; defaultMessage(args: ValidationArguments): string; }