import React from 'react'; import { BoxSystemProps } from './Box'; import { StyleConfig, PartStyles } from '../utils/styleConfig'; export declare type ToggleButtonParts = { button: 'hover' | 'focus' | 'active' | 'toggled' | 'disabled'; }; declare type ToggleButtonDOMProps = React.ComponentPropsWithRef<'button'>; declare type ToggleButtonStyleConfigProp = { styleConfig?: StyleConfig; }; declare type ToggleButtonSystemProps = BoxSystemProps; declare type ToggleButtonOwnProps = { /** Whether the button is toggled or not, if controlled */ isToggled?: boolean; /** * Whether the button is toggled by default, if uncontrolled * (default: false) */ defaultIsToggled?: boolean; /** A function called when the button is toggled */ onToggle?: (isToggled?: boolean) => void; }; export declare type ToggleButtonProps = ToggleButtonDOMProps & ToggleButtonStyleConfigProp & ToggleButtonSystemProps & ToggleButtonOwnProps; export declare const ToggleButton: React.ForwardRefExoticComponent & React.RefAttributes>; export declare const ButtonPart: import("styled-components").StyledComponent<"button", any, { 'data-part-id': string; } & import("@modulz/radix-system").SpaceSetProps & import("@modulz/radix-system").SxProp & { isToggled?: boolean | undefined; buttonStyles?: PartStyles<"hover" | "focus" | "active" | "toggled" | "disabled"> | undefined; }, "data-part-id">; export {};