import { default as React, FunctionComponent } from 'react'; import { ITouchEvent } from '@tarojs/components'; import { AnimateType, AnimateAction } from './types'; import { BasicComponent } from '../../utils/typings'; export interface AnimateProps extends BasicComponent { /** * 动画类型,见下方type值说明 * @default shake */ type: AnimateType /** * 触发方式,'initial'初始化执行; 'click'点击执行 * @default initial */ action: AnimateAction /** * 是否循环执行。true循环执行;false执行一次 * @default false */ loop: boolean /** * 点击元素时触发 * @default - */ onClick: (event: React.MouseEvent | ITouchEvent) => void } export declare const Animate: FunctionComponent & React.HTMLAttributes>;