import { ID } from "../../types/index.mjs"; import { GroupContext, GroupTicket } from "../../composables/createGroup/index.mjs"; //#region src/components/Group/GroupRoot.vue.d.ts interface GroupRootProps { /** Namespace for dependency injection (must match GroupItem namespace) */ namespace?: string; /** Disables the entire group instance */ disabled?: boolean; /** Auto-select non-disabled items on registration */ enroll?: boolean; /** * Controls mandatory group behavior: * - false (default): No mandatory group enforcement * - true: Prevents deselecting the last selected item * - `force`: Automatically selects the first non-disabled item on registration */ mandatory?: boolean | 'force'; } interface GroupRootSlotProps { /** Whether the group instance is disabled */ isDisabled: boolean; /** Whether no items are currently selected */ isNoneSelected: boolean; /** Whether all selectable (non-disabled) items are selected */ isAllSelected: boolean; /** Whether some but not all selectable items are selected */ isMixed: boolean; /** Select an item by ID */ select: (id: ID | ID[]) => void; /** Unselect an item by ID */ unselect: (id: ID | ID[]) => void; /** Toggle an item's group state by ID */ toggle: (id: ID | ID[]) => void; /** Select all selectable (non-disabled) items */ selectAll: () => void; /** Unselect all items (respects mandatory option) */ unselectAll: () => void; /** Toggle between all selected and none selected */ toggleAll: () => void; /** Attributes to bind to the root element */ attrs: { 'aria-multiselectable': true; }; } declare const useGroupRoot: (key: string, defaultValue?: GroupContext> | undefined) => GroupContext>, provideGroupRoot: (key: string, context: GroupContext>, app?: import("vue").App) => GroupContext>; 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<(GroupRootProps & { 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: {}) => void; attrs: any; slots: { default: (props: GroupRootSlotProps) => 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 { GroupRootProps, GroupRootSlotProps, _default as default, provideGroupRoot, useGroupRoot };