import type { PortableResource } from '../../parsing/protocol/messages'; import type { SpreadsheetWarning } from '../../spreadsheet/types'; import type { Biff8DrawingImage } from './types'; /** 图片转换后的资源引用、负载和警告。 */ export type PortableImageResourceResult = { /** 标准模型引用该图片资源的稳定地址。 */ reference: string; /** 解析器产生并等待主线程确认接收的可移植资源分块。 */ resource: PortableResource; /** 解析时产生但不阻止继续预览的警告。 */ warnings: SpreadsheetWarning[]; }; /** 将 BIFF8 图片转换成可跨线程传输的资源,不创建浏览器 URL。 */ export declare function createPortableImageResource(image: Biff8DrawingImage, resourceId?: string): Promise;