This repository has been archived on 2025-07-07. You can view files and clone it, but cannot push or open issues or pull requests.
Files
eternos/frontend/style/node_modules/embla-carousel/components/EmblaCarousel.d.ts
2025-01-11 09:54:09 +03:00

33 lines
1.3 KiB
TypeScript

import { EngineType } from './Engine';
import { EventHandlerType } from './EventHandler';
import { EmblaOptionsType } from './Options';
import { EmblaPluginsType, EmblaPluginType } from './Plugins';
export type EmblaCarouselType = {
canScrollNext: () => boolean;
canScrollPrev: () => boolean;
containerNode: () => HTMLElement;
internalEngine: () => EngineType;
destroy: () => void;
off: EventHandlerType['off'];
on: EventHandlerType['on'];
emit: EventHandlerType['emit'];
plugins: () => EmblaPluginsType;
previousScrollSnap: () => number;
reInit: (options?: EmblaOptionsType, plugins?: EmblaPluginType[]) => void;
rootNode: () => HTMLElement;
scrollNext: (jump?: boolean) => void;
scrollPrev: (jump?: boolean) => void;
scrollProgress: () => number;
scrollSnapList: () => number[];
scrollTo: (index: number, jump?: boolean) => void;
selectedScrollSnap: () => number;
slideNodes: () => HTMLElement[];
slidesInView: () => number[];
slidesNotInView: () => number[];
};
declare function EmblaCarousel(root: HTMLElement, userOptions?: EmblaOptionsType, userPlugins?: EmblaPluginType[]): EmblaCarouselType;
declare namespace EmblaCarousel {
let globalOptions: EmblaOptionsType | undefined;
}
export default EmblaCarousel;