import * as React from 'react'; import type { ButtonProps } from './Button.js'; import { DropdownMenu } from '../DropdownMenu/DropdownMenu.js'; import type { PolymorphicForwardRefComponent } from '../../utils/index.js'; export type DropdownButtonProps = { /** * Items in the dropdown menu. * Pass a function that takes the `close` argument (to close the menu), * and returns a list of `MenuItem` components. */ menuItems: ((close: () => void) => React.JSX.Element[]) | React.JSX.Element[] | React.JSX.Element; /** * Style of the dropdown button. * Use 'borderless' to hide outline. * @default 'default' */ styleType?: 'default' | 'borderless' | 'high-visibility'; /** * Props for the `DropdownMenu` which extends the props of `Popover`. */ dropdownMenuProps?: Omit, 'menuItems' | 'children'>; } & Omit; /** * Button that opens a DropdownMenu. * @example * const menuItems = (close: () => void) => [ * Item #1, * Item #2, * ]; * Default */ export declare const DropdownButton: PolymorphicForwardRefComponent<"button", DropdownButtonProps>;