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, AnimationStatus} from "./common"; 17 18export declare class ImageAnimatorExtend<T> extends ImageAnimatorAttribute<T> { 19} 20 21interface ImageAnimator extends ImageAnimatorAttribute<ImageAnimator> { 22 (): ImageAnimator; 23} 24 25declare class ImageAnimatorAttribute<T> extends CommonMethod<T> { 26 images(value: Array<{ 27 src: string, width?: number | string, height?: number | string, top?: number | string, left?: 28 number | string, duration?: number 29 }>): T; 30 31 state(value: AnimationStatus): T; 32 33 duration(value: number): T; 34 35 reverse(value: boolean): T; 36 37 fixedSize(value: boolean): T; 38 39 preDecode(value: number): T; 40 41 fillMode(value: FillMode): T; 42 43 iterations(value: number): T; 44 45 onStart(event: () => void): T; 46 47 onPause(event: () => void): T; 48 49 onRepeat(event: () => void): T; 50 51 onCancel(event: () => void): T; 52 53 onFinish(event: () => void): T; 54} 55 56export declare const ImageAnimatorInterface: ImageAnimator; 57