import { MenuItemType } from 'antd/lib/menu/hooks/useItems';
import React from 'react';
import { ExtendedButtonProps } from './extendedButton';
import { Either } from '../../_utils/types';
import { DropdownProps } from '../dropdown';
export interface IDropdownItem {
    disabled?: boolean;
    label: string;
    onClick?: MenuItemType['onClick'];
    key: React.Key;
}
export interface IDropdownItemWithDescription extends IDropdownItem {
    description: string;
}
export interface IDropdownItemWithIcon extends IDropdownItem {
    icon: React.ReactNode;
}
export type ItemType = Either<Either<IDropdownItem, IDropdownItemWithDescription>, IDropdownItemWithIcon>;
export type DropdownButtonProps = {
    children: string;
    items: Array<ItemType>;
    id?: string;
    disabled?: boolean;
    type: ExtendedButtonProps['type'];
    buttonProps?: Omit<ExtendedButtonProps, 'type'>;
    dropdownProps?: Omit<DropdownProps, 'children' | 'disabled' | 'menu'>;
};
declare const DropdownButton: React.FC<DropdownButtonProps>;
export { DropdownButton };
//# sourceMappingURL=index.d.ts.map