import { type ImageRequireSource, type ImageResolvedAssetSource } from 'react-native'; import { type ClickActionProps } from './utils/click-action'; import type { CommonInternalProps } from './utils/common-internal.props'; import type { CommonStyleProps } from './utils/style.props'; interface ImageWidgetInternalProps extends CommonInternalProps { imageWidth: number; imageHeight: number; image: Pick; } type ImageWidgetStyle = CommonStyleProps; export type ImageWidgetSource = ImageRequireSource | `http:${string}` | `https:${string}` | `data:image${string}`; export interface ImageWidgetProps extends ClickActionProps { style?: ImageWidgetStyle; /** * Width of the image */ imageWidth: number; /** * Height of the image */ imageHeight: number; /** * Image loaded using `require('./path/to/image')`, * or a path to image starting with "http:", "https:", or "data:/image" */ image: ImageWidgetSource; /** * Image radius */ radius?: number; } export declare function ImageWidget(_: ImageWidgetProps): null; export declare namespace ImageWidget { var __name__: string; var convertProps: (props: ImageWidgetProps) => ImageWidgetInternalProps; } export {}; //# sourceMappingURL=ImageWidget.d.ts.map