import React from "react";
import type { FieldErrorHandling, InputBaseProps, ValidatorHandler } from "../../types.js";
interface PossibleProps extends InputBaseProps<unknown>, FieldErrorHandling {
    pattern?: RegExp;
    maxLength?: number;
    minLength?: number;
    minValue?: number;
    maxValue?: number;
}
export interface ValidationOptions<T> {
    validations?: Record<string, (parentProps: T) => ValidatorHandler>;
    transformValue?: (value: any) => any;
}
export declare const withFieldValidation: <T extends PossibleProps, R extends React.ElementRef<any> = React.ElementRef<any>>(Component: React.ComponentType<T>, options?: ValidationOptions<T>) => React.ForwardRefExoticComponent<React.PropsWithoutRef<T> & React.RefAttributes<R>>;
export {};
//# sourceMappingURL=with-field-validation.d.ts.map