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