import { ComponentType } from 'react'
import { StandardProps, CommonEventFunction } from './common'
interface CoverImageProps extends StandardProps {
/** 图标路径,支持临时路径、网络地址、云文件ID。暂不支持base64格式。
* @supported weapp
*/
src: string
/** 图片加载成功时触发
* @supported weapp
*/
onLoad?: CommonEventFunction
/** 图片加载失败时触发
* @supported weapp
*/
onError?: CommonEventFunction
}
/** 覆盖在原生组件之上的图片视图。可覆盖的原生组件同cover-view,支持嵌套在cover-view里。
* @classification viewContainer
* @supported weapp, swan, alipay
* @example
* ```tsx
* class App extends Components {
* render () {
* return (
*
* )
* }
* }
* ```
* @see https://developers.weixin.qq.com/miniprogram/dev/component/cover-image.html
*/
declare const CoverImage: ComponentType
export { CoverImage, CoverImageProps }