import React, { PropsWithChildren, ReactElement, ForwardedRef } from 'react'; import PropTypes from 'prop-types'; import { CarbonIconType } from '@carbon/icons-react/lib/CarbonIcon'; type OverflowItem = { label: string; onClick: () => void; renderIcon: CarbonIconType; }; interface ActionBarOverflowItemProps extends PropsWithChildren { /** * className */ className?: string; /** * class name applied to the overflow options */ menuOptionsClass?: string; /** * overflowAriaLabel label for open close button overflow used for action bar items that do not fit. */ overflowAriaLabel?: string; /** * overflowMenuRef for the overflow menu width that is needed to calculate the width of the action bar with overflow */ overflowMenuRef?: ForwardedRef; /** * overflowItems: items to bre shown in the ActionBar overflow menu */ overflowItems?: ReactElement[]; /** * Optional tab index */ tabIndex?: number; } export declare const ActionBarOverflowItems: { ({ className, menuOptionsClass, overflowItems, overflowAriaLabel, overflowMenuRef, }: ActionBarOverflowItemProps): React.JSX.Element; displayName: string; propTypes: { /** * className */ className: PropTypes.Requireable; /** * class name applied to the overflow options */ menuOptionsClass: PropTypes.Requireable; /** * overflowAriaLabel label for open close button overflow used for action bar items that do nto fit. */ overflowAriaLabel: PropTypes.Requireable; /** * overflowItems: items to bre shown in the ActionBar overflow menu */ overflowItems: PropTypes.Requireable<(PropTypes.ReactElementLike | null | undefined)[]>; /** * overflowMenuRef for the overflow menu width that is needed to calculate the width of the action bar with overflow */ /**@ts-ignore */ overflowMenuRef: PropTypes.Requireable; /** * Optional tab index */ tabIndex: PropTypes.Requireable; }; }; export {}; //# sourceMappingURL=ActionBarOverflowItems.d.ts.map