import type { ComponentType, ElementRef, ForwardRefExoticComponent, PropsWithoutRef, RefAttributes } 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 ElementRef<any> = ElementRef<any>>(Component: ComponentType<T>, options?: ValidationOptions<T>) => ForwardRefExoticComponent<PropsWithoutRef<T> & RefAttributes<R>>;
export {};
//# sourceMappingURL=with-field-validation.d.ts.map