/** * BinData (CFB Storage) 에서 임베디드 이미지/OLE 데이터 추출. * * /BinData/BIN0001.png, BIN0002.jpg, ... 패턴. * DocInfo의 BIN_DATA 레코드와 storageId 로 연결됨. * * 원작: rhwp/src/parser/bin_data.rs (MIT, Edward Kim) */ import type { HwpCfbReader } from "./cfbReader.js"; import type { HwpBinDataRef } from "./types.js"; export declare function loadBinDataContent(cfb: HwpCfbReader, refs: HwpBinDataRef[]): Map; export declare function detectImageMime(extension: string): string; /** * 이미지 바이트의 시그니처(magic)로 포맷을 판별하고 헤더에서 원본 px 를 읽는다. * PNG/JPEG/GIF/BMP 지원. 못 읽으면 null. 모든 접근은 바운드 체크(무한루프·오버런 차단). */ export declare function imagePixelSize(data: Uint8Array): { w: number; h: number; } | null;