import type { ReactElement, HTMLAttributes, Ref } from "react";
import type SlCarouselElement from "@shoelace-style/shoelace/dist/components/carousel/carousel.js";
import { SlSlideChangeEvent } from "../events";
export type { SlCarouselElement };
export type SlCarouselSlideChangeEventDetail = {
index: number;
slide: SlCarouselItem;
};
export type SlCarouselSlideChangeEvent = SlSlideChangeEvent<
SlCarouselElement,
SlSlideChangeEventDetail
>;
export interface SlCarouselProps extends HTMLAttributes {
ref?: Ref;
/**
* When set, allows the user to navigate the carousel in the same direction indefinitely.
*/
loop?: boolean;
/**
* When set, show the carousel's navigation.
*/
navigation?: boolean;
/**
* When set, show the carousel's pagination indicators.
*/
pagination?: boolean;
/**
* When set, the slides will scroll automatically when the user is not interacting with them.
*/
autoplay?: boolean;
/**
* Specifies the amount of time, in milliseconds, between each automatic scroll.
*/
autoplayInterval?: number;
/**
* Specifies how many slides should be shown at a given time.
*/
slidesPerPage?: number;
/**
* Specifies the number of slides the carousel will advance when scrolling, useful when specifying a `slides-per-page`
* greater than one. It can't be higher than `slides-per-page`.
*/
slidesPerMove?: number;
/**
* Specifies the orientation in which the carousel will lay out.
*/
orientation?: "horizontal" | "vertical";
/**
* When set, it is possible to scroll through the slides by dragging them with the mouse.
*/
mouseDragging?: boolean;
/**
* Emitted when the active slide changes.
*/
onSlSlideChange?: (event: SlCarouselSlideChangeEvent) => void;
/**
* Emitted when the active slide changes.
*/
onSlSlideChangeCapture?: (event: SlCarouselSlideChangeEvent) => void;
}
/**
* Carousels display an arbitrary number of content slides along a horizontal or vertical axis.
*/
export default function SlCarousel(
props: SlCarouselProps,
): ReactElement;