1 | import * as React from 'react';
|
2 | import type { Settings } from '@ant-design/react-slick';
|
3 | export type CarouselEffect = 'scrollx' | 'fade';
|
4 | export 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 | rootClassName?: string;
|
10 | id?: string;
|
11 | slickGoTo?: number;
|
12 | dotPosition?: DotPosition;
|
13 | children?: React.ReactNode;
|
14 | dots?: boolean | {
|
15 | className?: string;
|
16 | };
|
17 | waitForAnimate?: boolean;
|
18 | }
|
19 | export interface CarouselRef {
|
20 | goTo: (slide: number, dontAnimate?: boolean) => void;
|
21 | next: () => void;
|
22 | prev: () => void;
|
23 | autoPlay: (palyType?: 'update' | 'leave' | 'blur') => void;
|
24 | innerSlider: any;
|
25 | }
|
26 | declare const Carousel: React.ForwardRefExoticComponent<CarouselProps & React.RefAttributes<CarouselRef>>;
|
27 | export default Carousel;
|