import * as React from 'react'; import { IconProps } from 'react-magma-icons'; import { ButtonIconPosition } from '../IconButton'; import { Omit, XOR } from '../../utils'; import { ButtonProps } from '../Button'; export interface IconOnlyDropdownButtonProps extends Omit { /** * Icon to display within the component */ icon?: React.ReactElement; /** * The text the screen reader will announce. Required for icon-only buttons */ 'aria-label': string; } export interface IconTextDropdownButtonProps extends ButtonProps { /** * Icon to display within the component */ icon?: React.ReactElement; /** * Position within the button for the icon to appear * @default ButtonIconPosition.right */ iconPosition?: ButtonIconPosition; /** * Leading icon to display on the left side within the component */ leadingIcon?: React.ReactElement; /** * The content of the component */ children: React.ReactChild | React.ReactChild[]; } export declare type DropdownButtonProps = XOR; export declare const DropdownButton: React.ForwardRefExoticComponent<({} & IconTextDropdownButtonProps & React.RefAttributes) | ({ children?: never; iconPosition?: never; leadingIcon?: never; } & IconOnlyDropdownButtonProps & React.RefAttributes)>;