import type { OfficeResourceSource } from '../resource-store'; /** 演示文稿媒体的浏览器播放类别。 */ export type PresentationMediaKind = 'audio' | 'video'; /** OfficeFileViewer 对演示文稿媒体的只读运行配置。 */ export type OfficeFileViewerPresentationMediaOptions = Readonly<{ /** 是否允许加载源文件声明的 HTTP(S) 外部媒体,默认禁止。 */ allowExternal?: boolean; /** 浏览器能够取得媒体地址时是否显示下载操作,默认显示。 */ download?: boolean; }>; /** 演示文稿中的内嵌或外部媒体来源。 */ export type PresentationMediaSource = Readonly<{ /** 浏览器应使用音频还是视频控件。 */ kind: PresentationMediaKind; /** 内嵌资源由资源仓库管理,外部资源受安全配置约束。 */ sourceKind: 'embedded' | 'external'; /** 内嵌资源引用或外部地址。 */ source: string | OfficeResourceSource; /** 源文件声明或根据扩展名推断出的 MIME。 */ mimeType?: string; /** 下载时使用的文件名。 */ fileName?: string; /** 是否循环播放;自动播放始终由查看器禁止。 */ loop?: boolean; }>; /** 根据 Office 媒体文件名推断浏览器可识别的 MIME。 */ export declare function getPresentationMediaMimeType(path: string): "image/png" | "video/x-msvideo" | "application/octet-stream" | "image/bmp" | "image/gif" | "image/jpeg" | "audio/mpeg" | "video/mp4" | "audio/ogg" | "video/ogg" | "image/svg+xml" | "image/tiff" | "video/webm" | "image/webp" | "video/quicktime" | "audio/wav" | "audio/mp4" | "audio/midi";