import type { ComponentType, ReactElement, ReactNode } from 'react'; import type { OfficeCapabilities } from '../../core/types'; import type { OfficeViewerThemeOptions } from '../../shared/theme'; import { type OfficeViewerWatermark } from '../../shared/watermark'; import './index.less'; import type { OfficeViewerLayoutContentScaling, OfficeViewerShellContextValue } from './types'; type OfficeViewerShellProviderBase = { theme?: OfficeViewerThemeOptions; watermark?: OfficeViewerWatermark; capabilities?: OfficeCapabilities; children: ReactNode; }; export type OfficeViewerShellProviderProps = OfficeViewerShellProviderBase & ({ value: OfficeViewerShellContextValue; defaultZoom?: never; zoom?: never; onZoomChange?: never; contentScaling?: never; } | { value?: undefined; defaultZoom?: number; zoom?: number; onZoomChange?: (zoom: number) => void; contentScaling?: OfficeViewerLayoutContentScaling; capabilities?: OfficeCapabilities; }); export type OfficeViewerShellComponent = { Provider: ComponentType; Root: ComponentType<{ className?: string; children: ReactNode; }>; Toolbar: ComponentType<{ children?: ReactNode; }>; Viewport: ComponentType<{ children: ReactNode; }>; Sidebar: ComponentType<{ children?: ReactNode; }>; StatusBar: ComponentType<{ children?: ReactNode; }>; FileInfo: ComponentType<{ children?: ReactNode; }>; Zoom: ComponentType; Fullscreen: ComponentType; }; declare function ShellProvider({ value, defaultZoom, zoom, onZoomChange, contentScaling, capabilities, theme, watermark, children, }: OfficeViewerShellProviderProps): ReactElement; declare function ShellRoot({ className, children, }: { className?: string; children: ReactNode; }): ReactElement; declare function ShellZoom(): ReactElement; declare function ShellFullscreen(): ReactElement; export declare const OfficeViewerShell: { Provider: typeof ShellProvider; Root: typeof ShellRoot; Toolbar: ({ children }: { children?: ReactNode; }) => ReactElement; Viewport: ({ children }: { children: ReactNode; }) => ReactElement; Sidebar: ({ children }: { children?: ReactNode; }) => ReactElement; StatusBar: ({ children, }: { children?: ReactNode; }) => ReactElement; FileInfo: ({ children, }: { children?: ReactNode; }) => ReactElement; Zoom: typeof ShellZoom; Fullscreen: typeof ShellFullscreen; }; export {};