import { Activation, ID } from "../../types/index.mjs"; import { StepContext, StepTicket } from "../../composables/createStep/index.mjs"; import { MaybeRefOrGetter, Ref } from "vue"; //#region src/components/Tabs/TabsRoot.vue.d.ts type TabsOrientation = 'horizontal' | 'vertical'; /** Ticket for tab items with element reference for focus management */ interface TabsTicket extends StepTicket { /** Element reference for roving tabindex focus management */ el?: MaybeRefOrGetter; } /** Activation mode alias for Tabs component API */ type TabsActivation = Activation; interface TabsRootProps { /** Namespace for dependency injection (must match child namespace) */ namespace?: string; /** Disables the entire tabs instance */ disabled?: boolean; /** Auto-select non-disabled items on registration */ enroll?: boolean; /** * Controls mandatory tab behavior: * - false: No mandatory tab enforcement * - true: Prevents deselecting the last selected item * - `force` (default): Automatically selects the first non-disabled tab */ mandatory?: boolean | 'force'; /** Whether arrow key navigation wraps around */ circular?: boolean; /** Tab orientation for keyboard navigation */ orientation?: TabsOrientation; /** * Activation mode: * - `automatic`: Tab activates on focus (arrow keys) * - `manual`: Tab activates on Enter/Space only */ activation?: TabsActivation; } interface TabsRootSlotProps { /** Whether the tabs instance is disabled */ isDisabled: boolean; /** Current orientation */ orientation: TabsOrientation; /** Current activation mode */ activation: TabsActivation; /** Select the first tab */ first: () => void; /** Select the last tab */ last: () => void; /** Select the next tab */ next: () => void; /** Select the previous tab */ prev: () => void; /** Step forward or backward by a specific count */ step: (count: number) => void; /** Select a tab by ID */ select: (id: ID) => void; /** Unselect a tab by ID */ unselect: (id: ID) => void; /** Toggle a tab's selection state by ID */ toggle: (id: ID) => void; /** Attributes to bind to the root element */ attrs: { 'aria-multiselectable': false; }; } interface TabsContext extends StepContext { /** Tab orientation */ orientation: Ref; /** Activation mode */ activation: Ref; /** Whether navigation wraps around */ circular: Ref; /** Root ID for generating tab/panel IDs */ rootId: string; } declare const useTabsRoot: (key: string, defaultValue?: TabsContext | undefined) => TabsContext, provideTabsRoot: (key: string, context: TabsContext, app?: import("vue").App) => TabsContext; 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<(TabsRootProps & { 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: TabsRootSlotProps) => 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 { TabsActivation, TabsContext, TabsOrientation, TabsRootProps, TabsRootSlotProps, TabsTicket, _default as default, provideTabsRoot, useTabsRoot };