import { type Dispatch, type SetStateAction } from "react"; import type { CarouselEmblaApiType, CarouselEmblaRefType } from "./Carousel"; export type CarouselAriaVariant = "group" | "tabpanel"; export type CarouselAnnouncementTrigger = "tab" | "navigation" | "drag" | "focus"; /** * Type definition for the Carousel context. * Provides access to the Embla Carousel API and reference. */ interface CarouselContextType { /** * The API instance of the Embla Carousel. * Provides methods to control the carousel programmatically. */ emblaApi?: CarouselEmblaApiType; /** * The reference to the Embla Carousel viewport. * Used to directly interact with the carousel DOM element. */ emblaRef?: CarouselEmblaRefType; /** * Aria variant for the Carousel. * When used with a `CarouselTabList` the screenreader will be presented as a `tablist` of tabpanels. * When used without a `CarouselTabList` the screenreader will be presented as a `group` of slides. */ ariaVariant: CarouselAriaVariant; /** * Function to set the aria variant for the Carousel. */ setAriaVariant: Dispatch>; /** * Disable screenreader announcing slide updates, defaults to false. */ disableSlideAnnouncements?: boolean; /** * Id for the carousel */ carouselId: string | undefined; /** * Announcement state, determines whether change is communicated to screenreader. * @param trigger */ announcementState: CarouselAnnouncementTrigger | undefined; /** * Set announcement state, determines whether change is communicated to screenreader. * @param trigger */ setAnnouncementState: (trigger: CarouselAnnouncementTrigger | undefined) => void; } export declare const CarouselContext: import("react").Context; export declare const useCarouselContext: () => CarouselContextType; export {};