import type { LocalizedOrNode } from '../client';
import React from "react";
import { type FieldPath, type FieldValues, type RegisterOptions } from "react-hook-form";
export interface FormComponentProps {
    name: string;
    isRequired?: boolean;
    canClear?: boolean;
    localizedPlaceholder?: LocalizedOrNode;
    rules?: Omit<RegisterOptions<FieldValues, FieldPath<FieldValues>>, 'valueAsNumber' | 'valueAsDate' | 'setValueAs' | 'disabled'>;
    defaultValue?: unknown;
    errorMessage?: string;
}
export declare function withFormComponent<P extends object>(Component: React.ComponentType<P>): React.ForwardRefExoticComponent<React.PropsWithoutRef<P & FormComponentProps> & React.RefAttributes<HTMLElement>>;
//# sourceMappingURL=hoc.d.ts.map