import { FieldValues, Resolver } from 'react-hook-form'; import * as Yup from 'yup'; export declare function yupResolver(schema: Yup.ObjectSchema | ReturnType>>, schemaOptions?: Parameters<(typeof schema)['validate']>[1], resolverOptions?: { mode?: 'async' | 'sync'; raw?: false; }): Resolver>; export declare function yupResolver(schema: Yup.ObjectSchema | ReturnType>>, schemaOptions: Parameters<(typeof schema)['validate']>[1] | undefined, resolverOptions: { mode?: 'async' | 'sync'; raw: true; }): Resolver;