///
import { PureComponent } from '../../utils/component';
import { noop } from '../../utils/func';
import { ProImageAnimation, ProImageSliderEvent, ProImageSliderProps, TouchIntent } from './type';
interface ProImageSliderState {
translateX: number;
animation: ProImageAnimation;
currentIndex: number;
visible: boolean;
backdropOpacity: number;
overlayVisible: boolean;
startMoveClientX: number;
startMoveClientY: number;
touched: boolean;
}
declare class ProImageSlider extends PureComponent {
disposeOverflowEffect: typeof noop;
eventBus: {
on: (type: Key, handler: import("../../utils/EventBus").EventBusHandler) => void;
off: (type: Key_1, handler?: import("../../utils/EventBus").EventBusHandler) => void;
emit: (type: Key_2, evt?: ProImageSliderEvent[Key_2]) => void;
all: import("../../utils/EventBus").EventBusHandlerMap;
};
get displayedImages(): import("./type").ProImageItem[];
static defaultProps: {
proImageItems: any[];
esc: boolean;
backdropOpacity: number;
};
static getDerivedStateFromProps(nextProps: ProImageSliderProps, prevState: ProImageSliderState): {
visible: boolean;
translateX: number;
animation: ProImageAnimation;
currentIndex: number;
backdropOpacity: number;
overlayVisible: boolean;
startMoveClientX: number;
startMoveClientY: number;
touched: boolean;
};
constructor(props: ProImageSliderProps);
setOverflowEffect: () => void;
componentDidMount(): void;
componentDidUpdate(prevProps: ProImageSliderProps, prevState: ProImageSliderState): void;
componentWillUnmount(): void;
handleKeyDown: (evt: KeyboardEvent) => void;
startOpenAnimation: () => void;
startCloseAnimation: () => void;
handleBgAnimationEnd: () => void;
handleIndexChange: (nextIndex: number) => void;
handleNext: () => void;
handlePrevious: () => void;
handlePhotoClick: () => void;
handleHorizontalMove: (clientX: number) => void;
handleVerticalMove: (clientY: number) => void;
handleSliderItemMove: (touchIntent: TouchIntent, clientX: number, clientY: number) => void;
handleSliderItemUp: (touchIntent: TouchIntent, clientX: number, clientY: number) => void;
handleSliderItemResize: {
(...args: any[]): void;
cancel: () => void;
};
handleRotate: () => void;
handleScale: (offsetScale: number) => void;
render(): JSX.Element;
}
export default ProImageSlider;