import { default as React } from 'react'; import { TooltipProps } from '../Tooltip/Tooltip'; export type FormLabelProps = { /** The string or element that will display for the label. */ label: React.ReactNode; /** Optional prop for a secondary label. This will appear to the right of the label. */ rightLabel?: React.ReactNode; /** Optional prop for a tooltip. This will appear as a blue info icon to the right of the label. */ tooltip?: Omit; /** Optional prop to show that the field is required. A red asterisk will appear next to the label. */ required?: boolean; /** Optional prop to style the label when the corresponding field has an error. */ error?: boolean; /** Optional prop to style the label when the corresponding field is disabled. */ disabled?: boolean; /** Optional prop to allow an id to be passed in. This will allow the form element to be selected when clicking on the label. */ id?: string; /** Optional prop to add a test id to the FormLabel for QA testing */ qaTestId?: string; }; declare const FormLabel: ({ label, rightLabel, tooltip, required, error, id, disabled, qaTestId, }: FormLabelProps) => React.JSX.Element; export default FormLabel;