/** * @module * * Blazing-fast PP-DocLayout for Node.js and Bun. * * Provides accurate document layout analysis with a * simple, modern, type-safe API. Supports PP-DocLayoutV2 and V3 models * for detecting text, tables, images, and other document regions * in reading order. * * @example * ```ts * import { DocLayoutService } from "ppu-doclayout"; * * const service = new DocLayoutService(); * await service.initialize(); * * const result = await service.analyze(imageBuffer); * console.log(result.boxes); * ``` */ export { DocLayoutService } from "./processor/doclayout.service.js"; export type { DebuggingOptions, DetectionOptions, DocLayoutOptions, DocLayoutResult, DocLayoutResultWithMasks, LayoutBox, ModelPathOptions, SessionOptions, } from "./interface.js"; export { DEFAULT_DEBUGGING_OPTIONS, DEFAULT_DETECTION_OPTIONS, DEFAULT_DOCLAYOUT_OPTIONS, DEFAULT_SESSION_OPTIONS, LABELS, MODEL_BASE_URL, MODEL_INPUT_SIZE, } from "./constants.js";