UNPKG

romaine

Version:

React OpenCV Manipulation and Image Narration & Editing

21 lines 743 B
/// <reference types="react" /> import { ImagePtr } from "../../types"; interface Props { image: string | File | null; saltId?: string; } export declare const useCanvas: ({ image, saltId }: Props) => { canvasRef: import("react").MutableRefObject<HTMLCanvasElement>; createCanvas: () => Promise<void>; originalImageDims: { width: number; height: number; }; canvasPtr: import("react").MutableRefObject<ImagePtr | undefined>; resetImage: () => void; /** loaded: Is the image loaded onto the canvas and does the pointer exist */ loaded: boolean; }; export declare type UseCanvasReturnType = ReturnType<typeof useCanvas>; export {}; //# sourceMappingURL=useCanvas.d.ts.map