import { ID } from "../../types/index.mjs"; import { AtomProps } from "../Atom/Atom.vue.mjs"; import "../Atom/index.mjs"; import { RegistryContext, RegistryTicketInput } from "../../composables/createRegistry/index.mjs"; import { StepContext, StepTicket } from "../../composables/createStep/index.mjs"; import { MaybeRefOrGetter, Ref } from "vue"; //#region src/components/Carousel/CarouselRoot.vue.d.ts type CarouselOrientation = 'horizontal' | 'vertical'; interface CarouselTicket extends StepTicket { /** Element reference for DOM measurement */ el?: MaybeRefOrGetter; } interface CarouselRootProps extends AtomProps { /** Unique identifier for the carousel */ id?: string; /** Accessible label for the carousel region */ label?: string; /** Namespace for dependency injection (must match child namespace) */ namespace?: string; /** Disables the entire carousel */ disabled?: boolean; /** Whether navigation wraps around from last to first */ circular?: boolean; /** Carousel orientation */ orientation?: CarouselOrientation; /** Number of slides visible at once */ perView?: number; /** Autoplay interval in milliseconds. 0 disables autoplay. */ autoplay?: number; /** Scroll behavior for programmatic navigation */ behavior?: ScrollBehavior; } interface CarouselRootSlotProps { /** Whether the carousel is disabled */ isDisabled: boolean; /** Current orientation */ orientation: CarouselOrientation; /** Number of slides visible at once */ perView: number; /** Select the first slide */ first: () => void; /** Select the last slide */ last: () => void; /** Select the next slide */ next: () => void; /** Select the previous slide */ prev: () => void; /** Step forward or backward by a specific count */ step: (count: number) => void; /** Select a slide by ID */ select: (id: ID) => void; /** Whether autoplay is active */ isAutoplay: boolean; /** Whether autoplay is paused */ isPaused: boolean; /** Milliseconds remaining until next slide */ remaining: number; /** Start or restart autoplay from full interval */ play: () => void; /** Stop autoplay and reset timer */ stop: () => void; /** Pause autoplay, preserving remaining time */ pause: () => void; /** Resume autoplay from where it was paused */ resume: () => void; /** Attributes to bind to the root element */ attrs: { 'role': 'region'; 'aria-roledescription': 'carousel'; 'aria-label': string; 'aria-disabled': boolean; 'data-disabled': true | undefined; }; } interface CarouselPartTicket extends RegistryTicketInput { type: 'viewport' | 'previous' | 'next' | 'indicator' | 'progress' | 'live-region'; el: MaybeRefOrGetter; } interface CarouselContext extends StepContext { /** Carousel orientation */ orientation: Ref; /** Number of slides visible at once */ perView: Ref; /** Whether navigation wraps around */ circular: Ref; /** Root ID for generating sub-component IDs */ rootId: string; /** Scroll behavior for programmatic navigation */ behavior: Ref; /** Registry for structural sub-components */ parts: RegistryContext; /** Autoplay interval duration in ms (0 = disabled) */ autoplay: Readonly>; /** Milliseconds remaining until next auto-advance */ remaining: Readonly>; /** Whether autoplay is currently active */ isAutoplay: Readonly>; /** Whether autoplay is currently paused */ isPaused: Readonly>; /** Restart autoplay from full interval */ play: () => void; /** Stop autoplay and reset the timer */ stop: () => void; /** Pause autoplay timer */ pause: () => void; /** Resume autoplay timer from remaining time */ resume: () => void; } declare const useCarouselRoot: (key: string, defaultValue?: CarouselContext | undefined) => CarouselContext, provideCarouselRoot: (key: string, context: CarouselContext, app?: import("vue").App) => CarouselContext; 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<(CarouselRootProps & { 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: CarouselRootSlotProps) => 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 { CarouselContext, CarouselOrientation, CarouselPartTicket, CarouselRootProps, CarouselRootSlotProps, CarouselTicket, _default as default, provideCarouselRoot, useCarouselRoot };