import { type Size } from '../p-btn/p-btn.types'; /** * A select button group component that displays multiple buttons as a connected group. * Provides a button-based selection interface with support for single/multiple selection, * custom styling, tooltips, and flexible item structure. * * @displayName PSelectBtn */ type BtnGroupItem = Record; type Props = { /** * The current selected value(s) (v-model). * For single selection: string, number, boolean, or null * For multiple selection: array of BtnGroupItem objects */ modelValue?: string | number | boolean | null | BtnGroupItem[]; /** * Array of items to display as buttons. * Each item should have properties matching itemValue, itemText, and itemTooltipText. */ items?: BtnGroupItem[] | readonly BtnGroupItem[]; /** * Property name to use as the item value. * Used for selection comparison and v-model binding. */ itemValue?: string | number; /** * Property name to use as the item display text. * Used for button label content. */ itemText?: string; /** * Property name to use as the item tooltip text. * Used when showTooltip is enabled. */ itemTooltipText?: string; /** * The size of the buttons in the group. * Valid values: 'sm', 'md', 'lg' */ size?: Size; /** * Whether to show tooltips on button hover. * Uses the itemTooltipText property for tooltip content. */ showTooltip?: boolean; /** * Whether to highlight selected buttons visually. * Applies selected styling to chosen buttons. */ highlightSelected?: boolean; /** * Whether buttons should grow to fill available space. * Makes all buttons equal width within the container. */ grow?: boolean; /** * Whether multiple items can be selected simultaneously. * When true, modelValue becomes an array of selected items. */ multiple?: boolean; /** * Whether to remove padding from button containers. * Useful for custom spacing control. */ noPadding?: boolean; }; type __VLS_Slots = { /** * Custom content for each button in the group. * Overrides the default item text display. * @param {BtnGroupItem} item - The current item data * @param {boolean} isSelected - Whether the current item is selected */ [key: `btn-${number}`]: (props: { item: BtnGroupItem; isSelected: boolean; }) => unknown; }; declare const __VLS_base: import("vue").DefineComponent any; }, string, import("vue").PublicProps, Readonly & Readonly<{ "onUpdate:modelValue"?: ((value: string | number | boolean | BtnGroupItem[] | null) => any) | undefined; }>, { size: Size; modelValue: string | number | boolean | null | BtnGroupItem[]; items: BtnGroupItem[] | readonly BtnGroupItem[]; itemText: string; itemValue: string | number; multiple: boolean; itemTooltipText: string; showTooltip: boolean; highlightSelected: boolean; grow: boolean; noPadding: boolean; }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>; declare const __VLS_export: __VLS_WithSlots; declare const _default: typeof __VLS_export; export default _default; type __VLS_WithSlots = T & { new (): { $slots: S; }; };