import * as Joi from 'joi'; export declare function translateWhen(when: any, validation?: Joi.Schema | null): Joi.Schema;