import useEmblaCarousel, { type UseEmblaCarouselType } from "embla-carousel-react"; import { type ComponentPropsWithoutRef } from "react"; export type CarouselEmblaRefType = UseEmblaCarouselType[0]; export type CarouselEmblaApiType = UseEmblaCarouselType[1]; type UseCarouselParameters = Parameters; export type CarouselOptions = UseCarouselParameters[0]; export type CarouselPlugin = UseCarouselParameters[1]; /** * Props for the Carousel component. * Pass a ref to the carousel to get it to return a reference to the embla API */ export interface CarouselProps extends ComponentPropsWithoutRef<"section"> { /** * Options to configure the Embla Carousel. * These options are passed directly to the Embla Carousel instance. */ emblaOptions?: CarouselOptions; /** * Plugins to enhance the functionality of the Embla Carousel. * These options are passed directly to the Embla Carousel instance. */ emblaPlugins?: CarouselPlugin; /** * Get embla API instance, use this to manage the state of the Carousel **/ getEmblaApi?: (embla: CarouselEmblaApiType) => void; /** * Disable screenreader announcing slide updates, defaults to false. */ disableSlideAnnouncements?: boolean; } export declare const Carousel: import("react").ForwardRefExoticComponent>; export {};