/** * Horizontal half-cropping of rendered page images, used when a physical * spread page is rasterized but only one logical half is wanted (spread * screenshot generation). * * Node-only by design: rasterization consumers (cleanComposer screenshot * conversion, the screenshot operation) run in Node. The browser build never * reaches this code path because spread splitting targets server-side * publishing pipelines. */ export interface CroppedImageResult { width: number; height: number; /** Data URL (image/jpeg) of the cropped half. */ base64: string; } /** * Crop the left or right half of a rendered page image. * * @param dataUrl Source image as a data URL (any image MIME node-canvas can decode) * @param half Which half of the image to keep * @returns The cropped half re-encoded as JPEG, with its dimensions * @throws When executed outside Node (no node-canvas available) */ export declare function cropImageHalf(dataUrl: string, half: 'left' | 'right'): Promise; //# sourceMappingURL=ImageCrop.d.ts.map