1 | import { ValidationOptions } from '../ValidationOptions';
|
2 | import { ValidationArguments } from '../../validation/ValidationArguments';
|
3 | import { ValidatorConstraintInterface } from '../../validation/ValidatorConstraintInterface';
|
4 | export interface ValidateByOptions {
|
5 | name: string;
|
6 | constraints?: any[];
|
7 | validator: ValidatorConstraintInterface | Function;
|
8 | async?: boolean;
|
9 | }
|
10 | export declare function buildMessage(impl: (eachPrefix: string, args?: ValidationArguments) => string, validationOptions?: ValidationOptions): (validationArguments?: ValidationArguments) => string;
|
11 | export declare function ValidateBy(options: ValidateByOptions, validationOptions?: ValidationOptions): PropertyDecorator;
|