import React from 'react'; import { ControllerStateAndHelpers } from 'downshift'; import { Item } from './types'; interface Props { /** Fit the width to its parent width when it is `true`. */ block: boolean; /** Pop menu items */ items: Item[]; /** The currently selected item */ selectedItems: Item[] | null; /** Callback function, to be executed when user selected an item and it has changed */ onChange: (_selectedItem: Item, _selectedItems: Item[]) => void; /** Callback function, to be executed when user selected an item, return clicked item and current selected items */ onSelect: (_selectedItem: Item, _selectedItems: Item[]) => void; /** Callback function, to be executed when user clicked outside of pop menu, return clicked item and current selected items */ onOuterClick: (_: ControllerStateAndHelpers) => void; /** Callback function, to be executed when user toggled the pop menu */ onToggle: (_isOpen: boolean) => void; /** Label of the component, will be shown before user selected option */ defaultLabel: string; /** Label of the component */ customLabel: string; /** Open direction of pop menu */ direction: 'left' | 'right' | 'auto'; /** Variant of component, `default` is the component with standard select button; * `compact` is the component with icon-only button */ variant: 'default' | 'compact'; /** Custom icon for the Dropdown button, if not supplied default icon will be used: * (`v`) icon on `default` variant and (**⋮**) icon on `compact` variant */ icon: JSX.Element; /** A boolean which, if true, disables the Dropdown */ disabled: boolean; /** A boolean which, if ture, show Reset Button */ showResetButton: boolean; /** A string which, will be shown in Reset Button if showResetButton is true */ resetButtonLabel: string; /** injected by with theme, used to handle key down for auto direction and rtl */ theme: { rtl: boolean; }; } declare const _default: React.FC & Partial> & Partial void; onOuterClick: () => void; onToggle: () => void; onSelect: () => void; defaultLabel: undefined; customLabel: undefined; direction: "auto"; variant: "default"; icon: undefined; disabled: boolean; showResetButton: boolean; resetButtonLabel: string; theme: { rtl: boolean; }; }, never>>, "direction" | "onChange" | "onSelect" | "variant" | "disabled" | "icon" | "block" | "onToggle" | "items" | "onOuterClick" | "defaultLabel" | "customLabel" | "selectedItems" | "showResetButton" | "resetButtonLabel"> & { theme?: import("@emotion/react").Theme | undefined; }>; export default _default;