import * as React from 'react'; import { ThemeInterface } from '../../theme/magma'; export declare enum ToggleTextPosition { left = "left", right = "right" } export interface ToggleProps extends React.InputHTMLAttributes { /** * If true, an element is checked (i.e., selected) * @default false */ checked?: boolean; /** * Style properties for the component container element */ containerStyle?: React.CSSProperties; /** * If true, checkbox is checked on first render * @default false */ defaultChecked?: boolean; /** * Content of the error message for toggle. If a value is provided, the component will be styled as an error state and the error message will display. */ errorMessage?: React.ReactNode; /** * @internal */ hasError?: boolean; isInverse?: boolean; /** * If true, a 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 for label; can be a node or a string */ labelText: React.ReactNode; /** * @internal */ testId?: string; /** * Whether the label appears to the left or the right of the toggle switch * @default ToggleTextPosition.left */ textPosition?: ToggleTextPosition; /** * @internal */ theme?: ThemeInterface; /** * Style properties for the part of the component that slides back and forth on the track */ thumbStyle?: React.CSSProperties; /** * Style properties for track on which the toggle thumb slides */ trackStyle?: React.CSSProperties; } export declare function buildIconContainerColor(props: any): any; export declare const Toggle: React.ForwardRefExoticComponent>;