import { ID } from "../../types/index.mjs"; import { SelectionContext, SelectionTicket } from "../../composables/createSelection/index.mjs"; //#region src/components/Selection/SelectionRoot.vue.d.ts interface SelectionRootProps { /** Namespace for dependency injection (must match SelectionItem namespace) */ namespace?: string; /** Disables the entire selection instance */ disabled?: boolean; /** Auto-select non-disabled items on registration */ enroll?: boolean; /** * Controls mandatory selection behavior: * - false (default): No mandatory selection enforcement * - true: Prevents deselecting the last selected item * - `force`: Automatically selects the first non-disabled item on registration */ mandatory?: boolean | 'force'; /** Enable multi-selection mode (array v-model) */ multiple?: boolean; } interface SelectionRootSlotProps { /** Whether the selection instance is disabled */ isDisabled: boolean; /** Enable multi-selection mode (array v-model) */ multiple: boolean; /** Select an item by ID */ select: (id: ID) => void; /** Unselect an item by ID */ unselect: (id: ID) => void; /** Toggle an item's selection state by ID */ toggle: (id: ID) => void; /** Attributes to bind to the root element */ attrs: { 'aria-multiselectable': boolean; }; } declare const useSelectionRoot: (key: string, defaultValue?: SelectionContext> | undefined) => SelectionContext>, provideSelectionRoot: (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<(SelectionRootProps & { 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: SelectionRootSlotProps) => 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 { SelectionRootProps, SelectionRootSlotProps, _default as default, provideSelectionRoot, useSelectionRoot };