import { ReactElement } from 'react'; import { LinkProps } from '../../../Link/Link'; import { LabelPrimitiveProps } from '../Label/Label'; export type FieldStatusProps = { hasError: true; description: string; } | { hasError?: boolean; description?: string; }; export type FieldPropsPrimitive = { link?: LinkProps; hideLabel?: boolean; label: LabelPrimitiveProps | string; id?: string; name: string; required?: boolean; } & FieldStatusProps; type FieldPropsPrimitiveWithChildren = FieldPropsPrimitive & { children: ReactElement; fieldId: string; }; declare const Field: import("react").ForwardRefExoticComponent>; export default Field;