/** 大工作表启用行窗口的可见行边界。 */ export declare const SPREADSHEET_ROW_WINDOW_THRESHOLD = 500; /** 大工作表启用二维窗口的可见列边界。 */ export declare const SPREADSHEET_COLUMN_WINDOW_THRESHOLD = 100; /** 工作表投影槽位启用窗口化的边界。 */ export declare const SPREADSHEET_PROJECTED_SLOT_THRESHOLD = 20000; /** 描述单个工作表的解析和渲染性能模式。 */ export type SpreadsheetPerformanceProfile = { /** 当前 Sheet 是否只在激活时解析。 */ sheetMode: 'materialized' | 'lazy'; /** 当前 Sheet 使用完整表格、行窗口或二维窗口。 */ gridMode: 'table' | 'row-window' | 'two-axis-window'; /** 行列相乘得到的潜在 DOM 槽位数。 */ projectedSlotCount: number; }; /** 计算工作表性能画像所需的提前结构信息。 */ export type SpreadsheetPerformanceInput = { /** 行数量。 */ rowCount: number; /** 列数量。 */ columnCount: number; /** 源压缩包大小,单位为字节。 */ compressedBytes?: number; /** 源压缩包解压后的累计大小,单位为字节。 */ uncompressedBytes?: number; /** 工作表 XML 或 BIFF 子流的累计大小,单位为字节。 */ sheetBytes?: number; /** CFB 文件总大小,单位为字节。 */ cfbFileBytes?: number; /** CFB 主数据流大小,单位为字节。 */ cfbMainStreamBytes?: number; /** 构建标准工作表模型消耗的时间,单位为毫秒。 */ modelBuildMilliseconds?: number; }; /** 按边界值选择工作表模式;边界本身即进入优化路径。 */ export declare function createSpreadsheetPerformanceProfile({ rowCount, columnCount, compressedBytes, uncompressedBytes, sheetBytes, cfbFileBytes, cfbMainStreamBytes, modelBuildMilliseconds, }: SpreadsheetPerformanceInput): SpreadsheetPerformanceProfile; /** 只允许同一会话的性能模式升级,避免视图在滚动期间退回完整表格。 */ export declare function upgradeSpreadsheetPerformanceProfile(current: SpreadsheetPerformanceProfile, next: SpreadsheetPerformanceProfile): SpreadsheetPerformanceProfile;