import { default as React } from 'react'; import { ToggleOnColor, TogglePosition } from './constants'; export type LabelText = { text: string; type?: 'subdued' | 'normal'; }; export type StatusTextType = { checked: string; unchecked: string; }; export interface ToggleProps extends Pick, 'onChange' | 'disabled'> { /** Determines if the Toggle is checked */ checked?: boolean; /** Sets the label of the Toggle */ label: LabelText[]; /** Defines the color of the toggle */ onColor?: keyof typeof ToggleOnColor; /** A text that is shown under the Toggle switch */ statusText?: StatusTextType; /** Sets the sublabel of the Toggle */ subLabel?: string; /** Sets the position of the toggle relative to the label */ togglePosition?: keyof typeof TogglePosition; /** Sets the data-testid attribute. */ testId?: string; } declare const Toggle: React.FC; export default Toggle;