import React, { KeyboardEvent, MouseEvent } from 'react';
import { DropdownTrigger, SelectboxSelectedItem } from './types';
import './dropdown-trigger.less';
export interface TriggerOptions extends DropdownTrigger {
    selectedItemTestId: string;
    /** Hides trigger chevron. Especially useful for cases when menu trigger is an icon, (e.g. burger) */
    triggerHideChevron: boolean;
}
export type DropdownMenuTriggerProps = {
    hasErrored?: boolean;
    hasSuccess?: boolean;
    hasWarnings?: boolean;
    isDisabled?: boolean;
    /**  handler that represents whether dropdown is currently open */
    isOpen?: boolean;
    /**  action to perform on trigger click */
    onClick?: (e: MouseEvent<HTMLButtonElement> | KeyboardEvent<HTMLButtonElement>, isKeyEvent?: boolean) => void;
    /** If provided, item's title will be shown instead of defaultTriggerText */
    selectedItem?: SelectboxSelectedItem;
    triggerOptions?: DropdownTrigger;
};
declare const DropdownMenuTrigger: React.ForwardRefExoticComponent<DropdownMenuTriggerProps & React.RefAttributes<HTMLButtonElement>>;
export default DropdownMenuTrigger;
