import { OptionDefinition, OptionGroup as OptionGroupDefinition } from '../internal/components/option/interfaces'; import { NonCancelableEventHandler } from '../internal/events'; import { BaseSelectProps } from '../select/interfaces'; export interface MultiselectProps extends BaseSelectProps { /** * Specifies the currently selected options. * Provide an empty array to clear the selection. */ selectedOptions: ReadonlyArray; /** * Determines whether the dropdown list stays open after the user selects an item. */ keepOpen?: boolean; /** * Specifies the maximum number of displayed tokens. If the property isn't set, all of the tokens are displayed. */ tokenLimit?: number; /** * Hides the tokens displayed underneath the component. * Only use this if the selected options are displayed elsewhere on the page. */ hideTokens?: boolean; /** * Specifies an `aria-label` for the token deselection button. */ deselectAriaLabel?: MultiselectProps.DeselectAriaLabelFunction; /** * An object containing all the localized strings required by the component. * Note that the string for `tokenLimitShowMore` should not contain the number of hidden tokens * because it will be added by the component automatically. */ i18nStrings?: MultiselectProps.I18nStrings; /** * Called when the user selects or deselects an option. * The event `detail` contains the current `selectedOptions`. */ onChange?: NonCancelableEventHandler; } export declare namespace MultiselectProps { type Option = OptionDefinition; type OptionGroup = OptionGroupDefinition; type Options = ReadonlyArray