import * as React from 'react'; import { IconProps } from 'react-magma-icons'; import { Omit, XOR } from '../../utils'; import { ButtonProps } from '../Button'; interface IconOnlyPopoverTriggerProps 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; /** * The tab order of the component when navigating with a keyboard */ tabIndex?: number; } interface IconTextPopoverTriggerProps extends ButtonProps { /** * Icon to display within the component */ icon?: React.ReactElement; /** * The content of the component */ children: React.ReactChild | React.ReactChild[] | string; /** * The tab order of the component when navigating with a keyboard */ tabIndex?: number; } export declare type PopoverTriggerProps = XOR; export declare const PopoverTrigger: React.ForwardRefExoticComponent<({} & IconTextPopoverTriggerProps & React.RefAttributes) | ({ children?: never; } & IconOnlyPopoverTriggerProps & React.RefAttributes)>; export {};