/** * * This file may have been modified by Bytedance Inc. (“Bytedance Inc.'s Modifications”). * All Bytedance Inc.'s Modifications are Copyright (year) Bytedance Inc.. * * This source code is licensed under the Apache license. * See LICENSE file in the project root for license information. * */ import React, { SyntheticEvent } from 'react'; export declare type ImgDefaultProps = React.DetailedHTMLProps, HTMLDivElement> & { imgSrc?: string; src?: string; alt?: string; style?: React.CSSProperties; width?: React.CSSProperties['width']; height?: React.CSSProperties['height']; className?: string; defaultSvg?: string; mask?: boolean; borderRadius?: number | string; onImgError?: (e: SyntheticEvent) => void; onImgErrorSetSrc?: (src: string) => string | Promise; onBeforeSetSrc?: (src: string, defaultSvg?: string) => string; }; export interface ImgDefaultGlobalConfigProps { onImgErrorSetSrc?: (src: ImgDefaultProps['src']) => string | Promise; onBeforeSetSrc?: (src: ImgDefaultProps['src'], defaultSvg?: ImgDefaultProps['defaultSvg']) => string; getDefaultImg?: (defaultImg: ImgDefaultProps['defaultSvg'], src: ImgDefaultProps['src']) => string; } export declare const ImgDefault: { (props: ImgDefaultProps): JSX.Element; globalConfig: (props: ImgDefaultGlobalConfigProps) => void; }; export default ImgDefault;