import { ComponentProps, ElementType, ForwardedRef, ReactNode, SyntheticEvent } from "react"; import { InteractionStatesProps } from "../../shared"; export interface InnerToggleButtonProps extends InteractionStatesProps { /** * A controlled checked value. */ checked?: boolean | null; /** * The initial value of `checked` when uncontrolled. */ defaultChecked?: boolean; /** * The value to associate with when in a group. */ value?: string; /** * Called when the toggle button checked state change. * @param {SyntheticEvent} event - React's original event. * @param {bool} isChecked - Whether the button is checked or not. * @returns {void} */ onChange?: (event: SyntheticEvent, isChecked: boolean) => void; /** * The style to use. */ variant?: "solid" | "outline"; /** * The toggle button color accent. */ color?: "primary" | "secondary"; /** * The toggle button shape. */ shape?: "pill" | "rounded" | "circular"; /** * Whether or not the toggle button should autoFocus on render. */ autoFocus?: boolean | number; /** * A toggle button can vary in size. */ size?: "sm" | "md"; /** * Whether or not the toggle button is disabled. */ disabled?: boolean; /** * An HTML element type or a custom React element type to render as. */ as?: ElementType; /** * React children. */ children: ReactNode; /** * @ignore */ forwardedRef: ForwardedRef; } export declare function InnerToggleButton(props: InnerToggleButtonProps): JSX.Element; export declare const ToggleButton: import("../../shared").OrbitComponent<"button", InnerToggleButtonProps>; export declare type ToggleButtonProps = ComponentProps;