import { ID } from "../../types/index.mjs"; import { SingleContext, SingleTicket } from "../../composables/createSingle/index.mjs"; //#region src/components/Single/SingleRoot.vue.d.ts interface SingleRootProps { /** Namespace for dependency injection (must match SingleItem namespace) */ namespace?: string; /** Disables the entire single instance */ disabled?: boolean; /** Auto-select non-disabled items on registration */ enroll?: boolean; /** * Controls mandatory single behavior: * - false (default): No mandatory single enforcement * - true: Prevents deselecting the last selected item * - `force`: Automatically selects the first non-disabled item on registration */ mandatory?: boolean | 'force'; } interface SingleRootSlotProps { /** Whether the single instance is disabled */ isDisabled: boolean; /** Select an item by ID */ select: (id: ID) => void; /** Unselect an item by ID */ unselect: (id: ID) => void; /** Toggle an item's single state by ID */ toggle: (id: ID) => void; /** Attributes to bind to the root element */ attrs: { 'aria-multiselectable': false; }; } declare const useSingleRoot: (key: string, defaultValue?: SingleContext> | undefined) => SingleContext>, provideSingleRoot: (key: string, context: SingleContext>, app?: import("vue").App) => SingleContext>; 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<(SingleRootProps & { 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: SingleRootSlotProps) => 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 { SingleRootProps, SingleRootSlotProps, _default as default, provideSingleRoot, useSingleRoot };