import type { WithElementRef } from "../../lib/utils.js"; import type { EmblaCarouselSvelteType, default as emblaCarouselSvelte } from "embla-carousel-svelte"; import type { HTMLAttributes } from "svelte/elements"; export type CarouselAPI = NonNullable["on:emblaInit"]> extends (evt: CustomEvent) => void ? CarouselAPI : never; type EmblaCarouselConfig = NonNullable[1]>; export type CarouselOptions = EmblaCarouselConfig["options"]; export type CarouselPlugins = EmblaCarouselConfig["plugins"]; export type CarouselProps = { opts?: CarouselOptions; plugins?: CarouselPlugins; setApi?: (api: CarouselAPI | undefined) => void; orientation?: "horizontal" | "vertical"; } & WithElementRef>; export type EmblaContext = { api: CarouselAPI | undefined; orientation: "horizontal" | "vertical"; scrollNext: () => void; scrollPrev: () => void; canScrollNext: boolean; canScrollPrev: boolean; handleKeyDown: (e: KeyboardEvent) => void; options: CarouselOptions; plugins: CarouselPlugins; onInit: (e: CustomEvent) => void; scrollTo: (index: number, jump?: boolean) => void; scrollSnaps: number[]; selectedIndex: number; }; export declare function setEmblaContext(config: EmblaContext): EmblaContext; export declare function getEmblaContext(name?: string): EmblaContext; export {}; //# sourceMappingURL=context.d.ts.map