import { default as IFieldControlProps } from './IFieldControlProps';
/**
 * FieldControl — explicit RHF injection wrapper for the compound pattern.
 *
 * Reads RHF field props (value, onChange, onBlur, ref, name) and fieldState
 * from the nearest `<Field>` context and clones them into the wrapped child.
 *
 * **Why this exists:**
 * The old composition pattern used `React.Children.map` + `React.cloneElement`
 * with `displayName` checks to inject props into direct children only.
 * FieldControl replaces that fragile approach — it works at any nesting depth
 * because it reads from React context instead of scanning the child tree.
 *
 * **Injection rules:**
 * - In composition mode (no `name` / no `FormProvider`): renders child as-is.
 * - In form integration mode: spreads all RHF `field` props into the child,
 *   then sets `id={name}` (unless already set) and `isError={true}` (when invalid).
 */
declare const FieldControl: {
    ({ children, className, required, isLoading: ownIsLoading, skeletonClassName }: IFieldControlProps): import("react/jsx-runtime").JSX.Element;
    displayName: string;
};
export default FieldControl;
