1 | import { ValidationChain } from '../chain';
|
2 | import { Middleware, Request } from '../base';
|
3 | import { Result } from '../validation-result';
|
4 | export declare type OneOfCustomMessageBuilder = (options: {
|
5 | req: Request;
|
6 | }) => any;
|
7 | export declare function oneOf(chains: (ValidationChain | ValidationChain[])[], message?: OneOfCustomMessageBuilder): Middleware & {
|
8 | run: (req: Request) => Promise<Result>;
|
9 | };
|
10 | export declare function oneOf(chains: (ValidationChain | ValidationChain[])[], message?: any): Middleware & {
|
11 | run: (req: Request) => Promise<Result>;
|
12 | };
|