1/* 2 * Copyright (c) 2021 Huawei Device Co., Ltd. 3 * Licensed under the Apache License, Version 2.0 (the "License"); 4 * you may not use this file except in compliance with the License. 5 * You may obtain a copy of the License at 6 * 7 * http://www.apache.org/licenses/LICENSE-2.0 8 * 9 * Unless required by applicable law or agreed to in writing, software 10 * distributed under the License is distributed on an "AS IS" BASIS, 11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 * See the License for the specific language governing permissions and 13 * limitations under the License. 14 */ 15 16import {CommonMethod} from "./common"; 17 18export declare class SwiperController { 19 constructor(); 20 21 showNext(); 22 23 showPrevious(); 24} 25 26export declare enum SwiperDisplayMode { 27 Stretch, 28 AutoLinear 29} 30 31export declare class SwiperExtend<T> extends SwiperAttribute<T> { 32} 33 34interface Swiper extends SwiperAttribute<Swiper> { 35 (controller?: SwiperController): Swiper; 36} 37 38declare class SwiperAttribute<T> extends CommonMethod<T> { 39 index(value: number): T; 40 41 autoPlay(value: boolean): T; 42 43 interval(value: number): T; 44 45 indicator(value: boolean): T; 46 47 loop(value: boolean): T; 48 49 duration(value: number): T; 50 51 vertical(value: boolean): T; 52 53 itemSpace(value: number | string): T; 54 55 displayMode(value: SwiperDisplayMode): T; 56 57 onChange(event: (index: number) => void): T; 58} 59 60export declare const SwiperInterface: Swiper; 61