import React from 'react'; import type { ComboboxValue } from './NewComposition/ComboBox'; type SegmentedButtonSegmentCommon = { readonly ariaLabel: string; readonly buttonId: string | null; readonly disabled: boolean; readonly idleColor: string; readonly renderContent: (color: string) => React.ReactNode; readonly segmentId: string; readonly style: React.CSSProperties | null; readonly tooltipLabel: string | null; }; export type SegmentedButtonSegment = SegmentedButtonSegmentCommon & ({ readonly onClick: React.MouseEventHandler; readonly onPointerDown: React.PointerEventHandler | null; readonly type: 'action'; } | { readonly leaveLeftSpace: boolean; readonly onOpenChange: ((open: boolean) => void) | null; readonly selectedId: string | number | null; readonly type: 'menu'; readonly values: ComboboxValue[]; }); export declare const SegmentedButton: React.FC<{ readonly segments: SegmentedButtonSegment[]; readonly style: React.CSSProperties | null; }>; export {};