import { FieldValues, ResolverOptions, ResolverResult } from 'react-hook-form'; import { z } from 'zod'; export type Resolver = >( schema: T, schemaOptions?: Partial, factoryOptions?: { /** * @default async */ mode?: 'async' | 'sync'; /** * Return the raw input values rather than the parsed values. * @default false */ raw?: boolean; }, ) => ( values: TFieldValues, context: TContext | undefined, options: ResolverOptions, ) => Promise>;