import type { Warpvas } from '../warpvas.class'; /** * Create warped canvas using Canvas 2D in Web Worker * * Executes texture rendering in background thread via Web Worker to avoid blocking main thread. * * @param warpvas - Warpvas instance containing deformation grid and rendering options * @param imageData - Source image data * @param destination - Target render canvas (creates new canvas if null) * @param options - Rendering configuration options * * @returns {Promise} Rendered canvas object */ declare const createWorkerWarpedCanvas2D: (warpvas: Warpvas, imageData: ImageData, destination: HTMLCanvasElement | null, options: { x: number; y: number; width: number; height: number; sourceScale?: number; destinationScale?: number; }) => Promise; export default createWorkerWarpedCanvas2D;