/** * [joiValidate description] * @param {[type]} schema e.g. * { * req: { * query: , * headers: , * params: , * }, * res: { * '200': , * 'default': * // or * // 'default': { * // schema: * // } * }, * } * @return {[type]} [description] */ export declare function joiValidate(schema: any): (ctx: any, next: any) => Promise; type MixedValidateOpts = { reqOpts?: Object; resOpts?: Object; onError?: Function; }; export default function mixedValidate(document: any, opts?: MixedValidateOpts): (ctx: any, next: any) => Promise; export {};