import { type ButtonSize } from './button'; import type { ChildrenProps, ComponentButtonColorNamesType, PlacementDictionaryType, StyleProps, TransferProps } from './shared'; export interface SplitButtonProps extends TransferProps, StyleProps, ChildrenProps { } export type SplitButtonColorType = Exclude, 'plain'>; export interface SpiritSplitButtonProps extends SplitButtonProps { color?: SplitButtonColorType; size?: ButtonSize; } export type UncontrolledSplitButtonProps = { buttonLabel: string; buttonOnClick: () => void; dropdownTriggerIconName?: string; dropdownTriggerLabel?: string; dropdownPlacement?: PlacementDictionaryType; id: string; isButtonLabelHidden?: boolean; isDisabled?: boolean; isDropdownTriggerLabelHidden?: boolean; } & ({ isButtonLabelHidden?: true; buttonIconName: string; } | { isButtonLabelHidden?: false; buttonIconName?: string; }) & SpiritSplitButtonProps;