import { AtomProps } from "../Atom/Atom.vue.mjs"; import "../Atom/index.mjs"; import { SelectionContext, SelectionTicket } from "../../composables/createSelection/index.mjs"; import { MaybeRefOrGetter } from "vue"; //#region src/components/Button/ButtonGroup.vue.d.ts /** Ticket for button items with element reference for focus management */ interface ButtonTicket extends SelectionTicket { /** Element reference for group focus management */ el?: MaybeRefOrGetter; } /** Imperative handle exposed by Button.Group. */ interface ButtonGroupExpose { /** Focus the selected button, or the first if none is selected. */ focus: (options?: FocusOptions) => void; } interface ButtonGroupProps extends AtomProps { /** Namespace for dependency injection */ namespace?: string; /** Disables the entire button group */ disabled?: boolean; /** Single (default) or multi-select */ multiple?: boolean; /** * Controls mandatory selection behavior: * - false (default): No mandatory enforcement * - true: Prevents deselecting the last selected item * - `force`: Automatically selects the first non-disabled item on registration */ mandatory?: boolean | 'force'; /** Accessible name for the group */ label?: string; /** ID of element that labels this group */ ariaLabelledby?: string; /** ID of element that describes this group */ ariaDescribedby?: string; } interface ButtonGroupSlotProps { /** Whether the button group is disabled */ isDisabled: boolean; /** Attributes to bind to the root element */ attrs: { 'role': 'group'; 'aria-label': string | undefined; 'aria-labelledby': string | undefined; 'aria-describedby': string | undefined; }; } declare const useButtonGroup: (key: string, defaultValue?: SelectionContext> | undefined) => SelectionContext>, provideButtonGroup: (key: string, context: SelectionContext>, app?: import("vue").App) => SelectionContext>; declare const _default: typeof __VLS_export; declare const __VLS_export: (__VLS_props: NonNullable>["props"], __VLS_ctx?: __VLS_PrettifyLocal>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable>["expose"], __VLS_setup?: Promise<{ props: import("vue").PublicProps & __VLS_PrettifyLocal<(ButtonGroupProps & { modelValue?: T | T[]; }) & { "onUpdate:modelValue"?: ((value: T | T[] | undefined) => any) | undefined; "onUpdate:model-value"?: ((value: T | T[]) => any) | undefined; }> & (typeof globalThis extends { __VLS_PROPS_FALLBACK: infer P; } ? P : {}); expose: (exposed: import("vue").ShallowUnwrapRef) => void; attrs: any; slots: { default: (props: ButtonGroupSlotProps) => any; }; emit: ((evt: "update:model-value", value: T | T[]) => void) & ((event: "update:modelValue", value: T | T[] | undefined) => void); }>) => import("vue").VNode & { __ctx?: NonNullable>; }; type __VLS_PrettifyLocal = (T extends any ? { [K in keyof T]: T[K]; } : { [K in keyof T as K]: T[K]; }) & {}; //#endregion export { ButtonGroupExpose, ButtonGroupProps, ButtonGroupSlotProps, ButtonTicket, _default as default, provideButtonGroup, useButtonGroup };