/** 打开文档时的提示文案 */ export type OpenDocumentMessages = { /** 地址为空时的提示 */ emptyUrl?: string; /** 下载中的 loading 文案 */ loading?: string; /** 下载失败的提示 */ downloadFailed?: string; /** 打开失败的提示 */ openFailed?: string; }; /** 打开文档配置 */ export type OpenDocumentOptions = { /** 覆盖默认提示文案,传空字符串可关闭对应提示 */ messages?: OpenDocumentMessages; /** * 打开后是否显示右上角菜单 * @default true */ showMenu?: boolean; }; /** * 下载并打开在线文档 * @param url 文档地址 * @param options 配置项 * @returns 下载到本地的临时文件路径 */ export declare function openDocumentByUrl(url: string, options?: OpenDocumentOptions): Promise;