import { ReactElement, default as React } from 'react'; export interface FormRowLabelOwnProps { /** * Additional classes to apply to the label. * **⚠️ INTERNAL UI KIT USE ONLY** */ className?: string; children: string | ReactElement; /** * The ID of the form element that the label is associated with. * Applies only when `as` is "label" (default behavior). * @default undefined */ htmlFor?: string; /** * Controls the alignment of the label. */ justify?: boolean; /** * Displays an asterisk (*) to indicate that the field is required. */ required?: boolean; /** * Whether the label is visually hidden. */ visuallyHidden?: boolean | 'keepSpace'; /** * The ID of the label element. */ id?: string; } /** @inheritdoc */ export interface FormRowLabelProps extends Omit { /** * The element to render the form row as. * @default 'label' */ as?: 'label' | 'span'; } export declare function getFormFieldLabelProps({ className, children, htmlFor, justify, required, ...rest }: T): Omit & { children: string | ReactElement>; htmlFor: string | undefined; className: string; }; /** @deprecated */ export declare const FormRowLabel: React.ForwardRefExoticComponent>;