import { type KeyboardEvent, type MouseEvent, type ReactNode } from "react"; import { type IAccessibilityConfigBase } from "../../typings/accessibility.js"; import { type IconType } from "../@types/icon.js"; import { type IUiDropdownButtonRenderProps } from "../UiDropdown/types.js"; /** * @internal */ export interface IUiToolbarIconSelectProps { /** * Icon name, or a custom node such as {@link UiToolbarColorSwatch}. * @defaultValue a fill colour swatch */ icon?: IconType | ReactNode; /** * Accessible name. It is also the tooltip text. */ label: string; /** * Held while the popup is on screen. Flips the chevron and keeps the pressed look. * @defaultValue false */ isOpen?: boolean; /** * What the trigger opens. Ignored when `ariaAttributes` are given. * @defaultValue "listbox" */ popupType?: "listbox" | "menu" | "dialog"; /** * Toggle state, exposed as `aria-pressed`. */ isSelected?: boolean; isDisabled?: boolean; /** * @defaultValue false */ hideTooltip?: boolean; onClick?: (event: MouseEvent) => void; onKeyDown?: (event: KeyboardEvent) => void; id?: string; dataId?: string; dataTestId?: string; accessibilityConfig?: IAccessibilityConfigBase; /** * Attributes from the `renderButton` callback of {@link UiDropdown}. */ ariaAttributes?: IUiDropdownButtonRenderProps["ariaAttributes"]; } /** * Icon-driven dropdown trigger of a toolbar: a colour picker, a style menu, a list. * * @internal */ export declare const UiToolbarIconSelect: import("react").ForwardRefExoticComponent>; //# sourceMappingURL=UiToolbarIconSelect.d.ts.map