/** CFB 读取失败原因的稳定代码。 */ export type CfbParseErrorCode = 'INVALID_SIGNATURE' | 'INVALID_HEADER' | 'SECTOR_OUT_OF_RANGE' | 'CHAIN_CYCLE' | 'CHAIN_TRUNCATED' | 'DIRECTORY_CORRUPTED'; /** 表示可安全展示的 CFB 结构错误,不包含本地文件路径。 */ export declare class CfbParseError extends Error { readonly code: CfbParseErrorCode; readonly sector?: number; readonly directoryId?: number; constructor(code: CfbParseErrorCode, message: string, context?: { /** 发生错误的 CFB 扇区索引。 */ sector?: number; /** 相关 CFB 目录项的标识。 */ directoryId?: number; }); }