1 | import * as React from 'react';
|
2 | import { Settings } from '@ant-design/react-slick';
|
3 | export declare type CarouselEffect = 'scrollx' | 'fade';
|
4 | export declare type DotPosition = 'top' | 'bottom' | 'left' | 'right';
|
5 | export interface CarouselProps extends Omit<Settings, 'dots' | 'dotsClass'> {
|
6 | effect?: CarouselEffect;
|
7 | style?: React.CSSProperties;
|
8 | prefixCls?: string;
|
9 | slickGoTo?: number;
|
10 | dotPosition?: DotPosition;
|
11 | children?: React.ReactNode;
|
12 | dots?: boolean | {
|
13 | className?: string;
|
14 | };
|
15 | }
|
16 | export interface CarouselRef {
|
17 | goTo: (slide: number, dontAnimate?: boolean) => void;
|
18 | next: () => void;
|
19 | prev: () => void;
|
20 | autoPlay: boolean;
|
21 | innerSlider: any;
|
22 | }
|
23 | declare const Carousel: React.ForwardRefExoticComponent<CarouselProps & React.RefAttributes<CarouselRef>>;
|
24 | export default Carousel;
|