import { RawImage } from "byte-codec"; import { PageRasteriser, RasterDrawOp, RasterPageGeometry } from "pdf-codec/raster"; //#region src/rasteriser.d.ts interface RasterCpuDiagnostic { readonly code: "raster-cpu/jpeg-image-undecoded"; readonly message: string; } interface CpuRasteriserOptions { readonly onDiagnostic?: (diagnostic: RasterCpuDiagnostic) => void; } declare class CpuRasteriser implements PageRasteriser { private readonly onDiagnostic; private buffers; private readonly decodedImages; constructor(options?: CpuRasteriserOptions); beginPage(geometry: RasterPageGeometry): void; decodedImageForTesting(bytes: Uint8Array): RawImage | undefined; draw(op: RasterDrawOp): void; finish(): Uint8Array; private requirePage; private fillRectOp; private pathOp; private imageOp; private decodeCached; private blendMask; private blendPixel; } declare function createCpuRasteriser(options?: CpuRasteriserOptions): PageRasteriser; //#endregion export { CpuRasteriser, type CpuRasteriserOptions, type RasterCpuDiagnostic, createCpuRasteriser };