import * as React from 'react'; import { IconProps } from 'react-magma-icons'; import { ThemeInterface } from '../../theme/magma'; import { XOR } from '../../utils'; import { ButtonProps, ButtonSize } from '../Button'; import { ToggleButtonGroupRole } from '../ToggleButtonGroup'; export interface ToggleButtonTextProps extends ButtonProps { /** * Sets a disabled state for a button. */ disabled?: boolean; /** * Sets an active button state for a single button. */ isChecked?: boolean; isInverse?: boolean; /** * Changes the button size: 'small', 'medium', and 'large'. */ size?: ButtonSize; /** * Value of the button element */ value: string; /** * @internal */ theme?: ThemeInterface; } export interface ToggleButtonIconProps extends ButtonProps { /** * Sets the aria-label which is required for icon only buttons. */ 'aria-label'?: string; /** * Sets a disabled state for a button. */ disabled?: boolean; /** * Icon which displays alongside text. */ icon: React.ReactElement; /** * Sets an active button state for a single button. */ isChecked?: boolean; isInverse?: boolean; /** * Changes the button size: 'small', 'medium', and 'large'. */ size?: ButtonSize; /** * Value of the button element */ value: string; /** * @internal */ theme?: ThemeInterface; } export declare type ToggleButtonProps = XOR; export declare enum ToggleButtonRole { radio = "radio", switch = "switch", tab = "tab" } export declare function getToggleButtonRole(groupRole?: ToggleButtonGroupRole, exclusive?: boolean): ToggleButtonRole; export declare function setIconWidth(props: ToggleButtonIconProps): string; export declare function setBackgroundColor(props: any): any; export declare const ToggleButtonStyles: (props: any) => import("@emotion/react").SerializedStyles; export declare const ToggleButton: React.ForwardRefExoticComponent<({} & ToggleButtonIconProps & React.RefAttributes) | ({ icon?: never; } & ToggleButtonTextProps & React.RefAttributes)>;