import type { ReactElement } from 'react'; import React from 'react'; import type { OfficeCorePlugin, OfficePluginRegistry } from './types'; import type { OfficeViewerPluginAdapter } from './viewerTypes'; /** * Viewer 插件 Provider 的公开属性。 * @experimental 插件 Provider 首版。 */ export type OfficeViewerProviderProps = { /** 宿主自行管理的注册表;传入后不会由 Provider 释放。 */ registry?: OfficePluginRegistry; /** 需要在 Provider 作用域中注册的插件。 */ plugins?: readonly OfficeCorePlugin[]; /** 插件 ID 到 React Renderer 的适配器。 */ adapters?: readonly OfficeViewerPluginAdapter[]; /** 需要接收插件上下文的内容。 */ children: React.ReactNode; }; /** 为 Viewer 建立作用域级插件注册和渲染边界。 */ export declare function OfficeViewerProvider({ registry, plugins, adapters, children, }: OfficeViewerProviderProps): ReactElement;