import type { RefObject } from 'react'; import type { OfficeFileViewerZoomMode } from './viewState'; /** 内容超出视口的方向。 */ export type OfficeOverflowAxis = 'horizontal' | 'vertical' | 'both'; /** 视口溢出检测所需的预览状态。 */ type UseOfficeOverflowNoticeOptions = { /** OfficeFileViewer 根容器。 */ containerRef: RefObject; /** 文件会话变化时重新显示提示。 */ sessionKey?: string; /** 工作表或幻灯片切换时重新显示提示。 */ activeKey?: string | number; /** 当前缩放百分比。 */ zoom: number; /** 自适应模式下由外壳自动消除可见溢出,不显示提示。 */ zoomMode: OfficeFileViewerZoomMode; /** 没有可渲染内容时关闭检测。 */ enabled?: boolean; }; /** 观察真实滚动尺寸,向用户提示需要横向或纵向滚动的内容。 */ export declare function useOfficeOverflowNotice({ containerRef, sessionKey, activeKey, zoom, zoomMode, enabled, }: UseOfficeOverflowNoticeOptions): OfficeOverflowAxis | undefined; export {};