import { type ViewportLiteral } from "../pixel-accessor"; import type { DistortionProcessor } from "./DistortionProcessor"; import { type ImageAdapter } from "../image-adapter"; import type { ColorResampler } from "../color-resampler"; import type { Point } from "../types"; /** * Proxy for performing image virtual viewport re-paging after distortion process. */ export declare class RepageProxy implements DistortionProcessor { private readonly processor; private readonly repage?; /** * RepageProxy constructor. * * @param processor * @param repage */ constructor(processor: DistortionProcessor, repage?: Point | ViewportLiteral | undefined); /** * Applies provided offset to image virtual viewport or resets image viewport offset to (0, 0) if no offset was provided. * * @param targetImage * @param resampler */ process(targetImage: ImageAdapter, resampler: ColorResampler): Promise>; }