// Generated by dts-bundle-generator v6.9.0 import { ValidationPipe, ValidationPipeOptions } from '@nestjs/common'; import { ClassConstructor } from 'class-transformer'; import { ValidationError } from 'class-validator'; export declare type NonEmptyArray = [ T, ...T[] ]; export declare class ProtocolValidationPipe extends ValidationPipe { constructor(options?: ValidationPipeOptions); } export declare class ParamValidationError { readonly constraints: { [type: string]: string; }; readonly value: any; constructor(validationId: string, errorMessage: string, param: any); } export declare type ParamValidation = (param: any) => any[]; export declare type ParamValidationWithTypeMetadata = (param: any, ...paramTypes: ClassConstructor[]) => any[]; export declare const greaterThanBuilder: (limit: number) => ParamValidation; export declare const isIntegerBuilder: () => ParamValidation; export declare const isNumberBuilder: () => ParamValidation; export declare const isStringBuilder: () => ParamValidation; export declare const isValidInstanceBuilder: () => ParamValidationWithTypeMetadata; export declare const isValidInstanceOfBuilder: (...paramTypes: NonEmptyArray>) => ParamValidation; export declare const lessThanBuilder: (limit: number) => ParamValidation; export declare const buildParamValidation: (validationId: string, errorMessage: string | ((param: any) => string), validationFun: (param: any) => boolean) => ParamValidation; export declare const isTypedValidation: (validation: ParamValidation | ParamValidationWithTypeMetadata) => validation is ParamValidationWithTypeMetadata; export declare const paramValidationMetadataKey: (baseKey: string) => string; export declare const buildParamValidationDecorator: (validation: ParamValidation | ParamValidationWithTypeMetadata) => ParameterDecorator; export declare const formatErrors: (errors: ValidationError[]) => any[]; export declare const throwValidationException: (errors: any[]) => void; export declare const ValidateParams: MethodDecorator; export declare const GreaterThan: (limit: number) => ParameterDecorator; export declare const IsInteger: ParameterDecorator; export declare const IsNumber: ParameterDecorator; export declare const IsString: ParameterDecorator; export declare const IsValidInstance: ParameterDecorator; export declare const IsValidInstanceOf: (...paramTypes: NonEmptyArray>) => ParameterDecorator; export declare const LessThan: (limit: number) => ParameterDecorator; export declare const greaterThan: (param: number, limit: number) => any[]; export declare const greaterThanOrFail: (param: number, limit: number) => void; export declare const isInteger: (param: any) => any[]; export declare const isIntegerOrFail: (param: any) => void; export declare const isNumber: (param: any) => any[]; export declare const isNumberOrFail: (param: any) => void; export declare const isString: (param: any) => any[]; export declare const isStringOrFail: (param: any) => void; export declare const isValidInstanceOf: (param: any, paramTypes_0: ClassConstructor, ...paramTypes_1: ClassConstructor[]) => any[]; export declare const isValidInstanceOfOrFail: (param: any, paramTypes_0: ClassConstructor, ...paramTypes_1: ClassConstructor[]) => void; export declare const isValidInstance: (param: any, paramType: ClassConstructor) => any[]; export declare const isValidInstanceOrFail: (param: any, paramType: ClassConstructor) => void; export declare const lessThan: (param: number, limit: number) => any[]; export declare const lessThanOrFail: (param: number, limit: number) => void; export {};