import * as React from 'react'; import { ThemeInterface } from '../../theme/magma'; export declare enum CheckboxTextPosition { left = "left", right = "right" } export interface CheckboxProps extends React.InputHTMLAttributes { /** * If true, element is checked (i.e. selected) * @default false */ checked?: boolean; /** * Hex code for the background color * @default #007085 (theme.colors.cyan700) */ color?: string; /** * Style properties for the component container element */ containerStyle?: React.CSSProperties; /** * If true, checkbox is checked on first render */ defaultChecked?: boolean; /** * If true, element is disabled * @default false */ disabled?: boolean; /** * Content of the error message for an individual checkbox. If a value is provided, the input will be styled as an error state and the error message will display. */ errorMessage?: React.ReactNode; hasError?: boolean; /** * Style properties for the checkbox element */ inputStyle?: React.CSSProperties; isInverse?: boolean; /** * If true, label text will be hidden visually, but will still be read by assistive technology * @default false */ isTextVisuallyHidden?: boolean; /** * Style properties for the label element */ labelStyle?: React.CSSProperties; /** * Content of label; can be node or string */ labelText: React.ReactNode; /** * Action that fires when selected value of the checkbox changes */ onChange?: (event: React.ChangeEvent) => void; /** * @internal */ testId?: string; /** * Whether the label appears to the left or the right of the checkbox * @default CheckboxTextPosition.right */ textPosition?: CheckboxTextPosition; /** * @internal */ hideFocus?: boolean; /** * Text for aria-label attribute for the checkbox. */ ariaLabel?: string; } export declare const HiddenLabelText: import("@emotion/styled").StyledComponent<{ theme?: import("@emotion/react").Theme; as?: React.ElementType; }, React.DetailedHTMLProps, HTMLSpanElement>, {}>; export declare const checkboxInputClassName = "magma-checkbox-input"; export declare const HiddenInput: React.FC & React.RefAttributes> | React.ForwardRefExoticComponent & React.RefAttributes>; interface FakeInputStyleProps { isChecked?: boolean; color: string; disabledColor?: string; disabled?: boolean; isIndeterminate?: boolean; isInverse?: boolean; hasError?: boolean; hideFocus?: boolean; inverseCheckedColor?: string; inverseDisabledColor?: string; inverseErrorColor?: string; inverseUncheckedColor?: string; textPosition?: CheckboxTextPosition; theme: ThemeInterface; uncheckedColor?: string; } export interface StyledFakeInputProps extends FakeInputStyleProps { children?: React.ReactNode; style?: React.CSSProperties; 'aria-hidden'?: React.AriaAttributes['aria-hidden']; } export declare const StyledFakeInput: React.FC> | React.ForwardRefExoticComponent>; export declare const Checkbox: React.MemoExoticComponent>>; export {};