UNPKG

807 BTypeScriptView Raw
1/// <reference types="react" />
2import { CarouselProps } from './types';
3export declare const noop: () => void;
4export declare const defaultStatusFormatter: (current: number, total: number) => string;
5export declare const isKeyboardEvent: (e?: import("react").MouseEvent<Element, MouseEvent> | import("react").KeyboardEvent<Element> | undefined) => e is import("react").KeyboardEvent<Element>;
6/**
7 * Gets the list 'position' relative to a current index
8 * @param index
9 */
10export declare const getPosition: (index: number, props: CarouselProps) => number;
11/**
12 * Sets the 'position' transform for sliding animations
13 * @param position
14 * @param forceReflow
15 */
16export declare const setPosition: (position: number, axis: 'horizontal' | 'vertical') => React.CSSProperties;
17//# sourceMappingURL=utils.d.ts.map
\No newline at end of file