import { ListboxItemType } from '../Listbox'; import { default as Popover } from '../../internal/components/Popover'; import { ToolbarItemAppearance } from './types'; import { DataTrackingId } from '../../types'; /** * Type for items in the ToolbarSelect dropdown * @extends ItemType */ type ToolbarSelectItem> = ListboxItemType; /** * Props for the ToolbarSelect component * @extends Omit, "appearance" | "onChange"> */ export type ToolbarSelectProps> = Omit, "appearance" | "onChange"> & { /** * Visual appearance of the select button * @default ghost */ appearance?: ToolbarItemAppearance; /** * Callback function when selection changes */ onChange?: (optionId: string) => void; /** * Currently selected item ID (controlled mode) */ selected?: string; /** * Array of selectable items */ items: ToolbarSelectItem[]; /** * Accessible label for the select dropdown dialog (e.g. "Status options"). */ accessibleLabel: string; } & DataTrackingId; /** * ToolbarSelect component provides a dropdown selector within a toolbar. * * Features: * - Dropdown menu with selectable options * - Controlled and uncontrolled usage patterns * - Automatic overflow menu integration * - Accessibility support with proper ARIA labels * - Ghost and primary appearance options * - Dropdown arrow icon indicator * - Listbox integration for keyboard navigation * * @example * setFont(id)} * /> * * @example * */ export declare const ToolbarSelect: import('react').ForwardRefExoticComponent, HTMLButtonElement>, "ref">, "children"> & import('..').LayoutUtilProps & DataTrackingId & { aiMark?: boolean | import('..').AiIconName; appearance?: import('../..').ButtonAppearance; size?: Extract; loading?: boolean; } & { children?: import('react').ComponentPropsWithoutRef<"button">["children"]; icon?: import('..').IconProps["svg"] | { after: import('..').IconProps["svg"]; } | { before: import('..').IconProps["svg"]; }; } & import('react').RefAttributes, "ref"> | Omit, HTMLButtonElement>, "ref">, "children"> & import('..').LayoutUtilProps & DataTrackingId & { aiMark?: boolean | import('..').AiIconName; appearance?: import('../..').ButtonAppearance; size?: Extract; loading?: boolean; } & { children?: never; icon?: import('..').IconProps["svg"]; } & import('react').RefAttributes, "ref">, "onChange" | "appearance"> & { /** * Visual appearance of the select button * @default ghost */ appearance?: ToolbarItemAppearance; /** * Callback function when selection changes */ onChange?: (optionId: string) => void; /** * Currently selected item ID (controlled mode) */ selected?: string; /** * Array of selectable items */ items: ToolbarSelectItem>[]; /** * Accessible label for the select dropdown dialog (e.g. "Status options"). */ accessibleLabel: string; } & DataTrackingId & import('react').RefAttributes>; export {};