import * as React from 'react'; import { OmitPolyfill, IconElement } from '../common'; import {PropsWithChildren} from "react"; export interface SegmentedToggleProps { dataHook?: string; defaultSelected?: React.ReactNode; selected?: React.ReactNode; onClick?: (event: React.SyntheticEvent, value: string) => void; disabled?: boolean; children: any[]; } export type SegmentedToggleButtonProps = OmitPolyfill< React.ButtonHTMLAttributes, 'onFocus' | 'onBlur' | 'type' > & { prefixIcon?: IconElement; value?: string; selected?: boolean; disabled?: boolean; dataHook?: string; focusableOnFocus?: React.FocusEventHandler; focusableOnBlur?: React.FocusEventHandler; }; export const SegmentedToggleButton: React.FC>; export type SegmentedToggleIconProps = OmitPolyfill< React.ButtonHTMLAttributes, 'onFocus' | 'onBlur' | 'type' > & { selected?: boolean; value?: string; tooltipText?: string; disabled?: boolean; dataHook?: string; 'data-click'?: string; focusableOnFocus?: React.FocusEventHandler; focusableOnBlur?: React.FocusEventHandler; }; export class SegmentedToggleIcon extends React.Component> {} export default class SegmentedToggle extends React.Component> { static Button: typeof SegmentedToggleButton; static Icon: typeof SegmentedToggleIcon; }