import { AsyncValidator, Validator } from 'fluentvalidation-ts'; import { FieldValues, Resolver } from 'react-hook-form'; /** * Creates a resolver for react-hook-form using FluentValidation schema validation * @param {Validator} validator - The FluentValidation validator to use * @returns {Resolver} A resolver function compatible with react-hook-form * @example * import { Validator } from 'fluentvalidation-ts'; * * class SchemaValidator extends Validator { * constructor() { * super(); * this.ruleFor('username').notEmpty(); * this.ruleFor('password').notEmpty(); * } * } * * const validator = new SchemaValidator(); * * useForm({ * resolver: fluentValidationResolver(validator) * }); */ export declare function fluentValidationResolver(validator: Validator): Resolver; export declare function fluentAsyncValidationResolver>(validator: TValidator): Resolver;