import { ChangeEvent, ReactElement, ReactNode } from 'react'; export type LabelPlacement = 'end' | 'start' | 'top' | 'bottom'; export interface FormControlLabelClasses { label?: string; /** Consumer utility for the optional helper/description line under the label. */ helperText?: string; } export interface FormControlLabelProps { /** The control element (a checkbox, radio, or switch). Receives `checked`/`onChange`/`disabled`/`name`/`value` unless already set. */ control: ReactElement; label?: ReactNode; /** * Optional second line under the label text, at the same indent. Rendered in the secondary * "Small 12/16 delta-600" style and wired to the control with `aria-describedby`; it never joins * the accessible name, which stays the label text. */ helperText?: ReactNode; checked?: boolean; disabled?: boolean; name?: string; value?: unknown; labelPlacement?: LabelPlacement; className?: string; classes?: FormControlLabelClasses; sx?: unknown; onChange?: (event: ChangeEvent, checked: boolean) => void; } /** * Native replacement for MUI `FormControlLabel` — a `