import * as Yup from 'yup'; import { type VovkRequest, type KnownAny, type VovkValidationType, type VovkTypedMethod, type VovkOperationObject } from 'vovk'; declare function withYup ? U : Record) => KnownAny, TYupBody extends Yup.Schema, TYupQuery extends Yup.Schema, TYupParams extends Yup.Schema, TYupOutput extends Yup.Schema, TYupIteration extends Yup.Schema, TReq extends VovkRequest = VovkRequest ? U : never, TYupQuery extends Yup.Schema ? U : undefined, TYupParams extends Yup.Schema ? U : Record>, TIsForm extends boolean = false>({ isForm, body, query, params, output, iteration, handle, disableServerSideValidation, skipSchemaEmission, validateEachIteration, options, preferTransformed, operationObject, }: { isForm?: TIsForm; body?: TYupBody; query?: TYupQuery; params?: TYupParams; output?: TYupOutput; iteration?: TYupIteration; handle: T; disableServerSideValidation?: boolean | VovkValidationType[]; skipSchemaEmission?: boolean | VovkValidationType[]; validateEachIteration?: boolean; options?: { validateOptions?: Yup.ValidateOptions; }; preferTransformed?: boolean; operationObject?: VovkOperationObject; }): T & { __types: { body: TYupBody extends Yup.Schema ? U : any; query: TYupQuery extends Yup.Schema ? U_1 : any; params: TYupParams extends Yup.Schema ? U_2 : Record; output: TYupOutput extends Yup.Schema ? U_3 : any; iteration: TYupIteration extends Yup.Schema ? U_4 : any; isForm: TIsForm; }; isRPC?: boolean; } & { schema: Omit & Partial; wrapper?: ((req: VovkRequest, params: Parameters ? U : any, TYupQuery extends Yup.Schema ? U_1 : any, TYupParams extends Yup.Schema ? U_2 : Record, TYupOutput extends Yup.Schema ? U_3 : any, TYupIteration extends Yup.Schema ? U_4 : any, TIsForm>>[1]) => ReturnType ? U : any, TYupQuery extends Yup.Schema ? U_1 : any, TYupParams extends Yup.Schema ? U_2 : Record, TYupOutput extends Yup.Schema ? U_3 : any, TYupIteration extends Yup.Schema ? U_4 : any, TIsForm>>) | undefined; } & { fn: { ? U : any, TYupQuery extends Yup.Schema ? U_1 : any, TYupParams extends Yup.Schema ? U_2 : Record, TYupOutput extends Yup.Schema ? U_3 : any, TYupIteration extends Yup.Schema ? U_4 : any, TIsForm>>>(input?: ((undefined extends TYupBody | undefined ? undefined extends TYupQuery | undefined ? undefined extends TYupParams | undefined ? true : false : false : false) extends true ? { disableClientValidation?: boolean; } & (undefined extends TYupBody | undefined ? { body?: VovkTypedMethod ? U : any, TYupQuery extends Yup.Schema ? U_1 : any, TYupParams extends Yup.Schema ? U_2 : Record, TYupOutput extends Yup.Schema ? U_3 : any, TYupIteration extends Yup.Schema ? U_4 : any, TIsForm>["__types"]["body"] | undefined; } : { body: VovkTypedMethod ? U : any, TYupQuery extends Yup.Schema ? U_1 : any, TYupParams extends Yup.Schema ? U_2 : Record, TYupOutput extends Yup.Schema ? U_3 : any, TYupIteration extends Yup.Schema ? U_4 : any, TIsForm>["__types"]["body"]; }) & (undefined extends TYupQuery | undefined ? { query?: VovkTypedMethod ? U : any, TYupQuery extends Yup.Schema ? U_1 : any, TYupParams extends Yup.Schema ? U_2 : Record, TYupOutput extends Yup.Schema ? U_3 : any, TYupIteration extends Yup.Schema ? U_4 : any, TIsForm>["__types"]["query"] | undefined; } : { query: VovkTypedMethod ? U : any, TYupQuery extends Yup.Schema ? U_1 : any, TYupParams extends Yup.Schema ? U_2 : Record, TYupOutput extends Yup.Schema ? U_3 : any, TYupIteration extends Yup.Schema ? U_4 : any, TIsForm>["__types"]["query"]; }) & (undefined extends TYupParams | undefined ? { params?: VovkTypedMethod ? U : any, TYupQuery extends Yup.Schema ? U_1 : any, TYupParams extends Yup.Schema ? U_2 : Record, TYupOutput extends Yup.Schema ? U_3 : any, TYupIteration extends Yup.Schema ? U_4 : any, TIsForm>["__types"]["params"] | undefined; } : { params: VovkTypedMethod ? U : any, TYupQuery extends Yup.Schema ? U_1 : any, TYupParams extends Yup.Schema ? U_2 : Record, TYupOutput extends Yup.Schema ? U_3 : any, TYupIteration extends Yup.Schema ? U_4 : any, TIsForm>["__types"]["params"]; }) & { meta?: { [key: string]: any; __disableClientValidation?: boolean; }; } : never) | undefined): (undefined extends TYupBody | undefined ? undefined extends TYupQuery | undefined ? undefined extends TYupParams | undefined ? true : false : false : false) extends true ? TReturnType : never; ? U : any, TYupQuery extends Yup.Schema ? U_1 : any, TYupParams extends Yup.Schema ? U_2 : Record, TYupOutput extends Yup.Schema ? U_3 : any, TYupIteration extends Yup.Schema ? U_4 : any, TIsForm>>>(input: { disableClientValidation?: boolean; } & (undefined extends TYupBody | undefined ? { body?: VovkTypedMethod ? U : any, TYupQuery extends Yup.Schema ? U_1 : any, TYupParams extends Yup.Schema ? U_2 : Record, TYupOutput extends Yup.Schema ? U_3 : any, TYupIteration extends Yup.Schema ? U_4 : any, TIsForm>["__types"]["body"] | undefined; } : { body: VovkTypedMethod ? U : any, TYupQuery extends Yup.Schema ? U_1 : any, TYupParams extends Yup.Schema ? U_2 : Record, TYupOutput extends Yup.Schema ? U_3 : any, TYupIteration extends Yup.Schema ? U_4 : any, TIsForm>["__types"]["body"]; }) & (undefined extends TYupQuery | undefined ? { query?: VovkTypedMethod ? U : any, TYupQuery extends Yup.Schema ? U_1 : any, TYupParams extends Yup.Schema ? U_2 : Record, TYupOutput extends Yup.Schema ? U_3 : any, TYupIteration extends Yup.Schema ? U_4 : any, TIsForm>["__types"]["query"] | undefined; } : { query: VovkTypedMethod ? U : any, TYupQuery extends Yup.Schema ? U_1 : any, TYupParams extends Yup.Schema ? U_2 : Record, TYupOutput extends Yup.Schema ? U_3 : any, TYupIteration extends Yup.Schema ? U_4 : any, TIsForm>["__types"]["query"]; }) & (undefined extends TYupParams | undefined ? { params?: VovkTypedMethod ? U : any, TYupQuery extends Yup.Schema ? U_1 : any, TYupParams extends Yup.Schema ? U_2 : Record, TYupOutput extends Yup.Schema ? U_3 : any, TYupIteration extends Yup.Schema ? U_4 : any, TIsForm>["__types"]["params"] | undefined; } : { params: VovkTypedMethod ? U : any, TYupQuery extends Yup.Schema ? U_1 : any, TYupParams extends Yup.Schema ? U_2 : Record, TYupOutput extends Yup.Schema ? U_3 : any, TYupIteration extends Yup.Schema ? U_4 : any, TIsForm>["__types"]["params"]; }) & { meta?: { [key: string]: any; __disableClientValidation?: boolean; }; }): TReturnType; }; models: { iteration?: (TYupIteration & ({} | null)) | undefined; output?: (TYupOutput & ({} | null)) | undefined; params?: (TYupParams & ({} | null)) | undefined; query?: (TYupQuery & ({} | null)) | undefined; body?: (TYupBody & ({} | null)) | undefined; }; }; export { withYup };