import React from 'react'; import type { OfficeImagePreviewTarget } from './types'; /** 图片右键菜单在预览器内的显示参数。 */ type OfficeImageContextMenuProps = { /** 当前右键操作关联的图片。 */ target: OfficeImagePreviewTarget; /** 菜单相对预览器左侧的位置。 */ x: number; /** 菜单相对预览器顶部的位置。 */ y: number; /** 是否显示下载操作。 */ download: boolean; /** 当前预览器所在的文档对象。 */ ownerDocument: Document; /** 打开当前图片的预览层。 */ onPreview(): void; /** 关闭右键菜单。 */ onClose(): void; }; /** 渲染只包含预览和下载操作的图片右键菜单。 */ export declare function OfficeImageContextMenu({ target, x, y, download, ownerDocument, onPreview, onClose, }: OfficeImageContextMenuProps): React.JSX.Element; export {};