/** * OpenCV.js surfaces C++ exceptions as a raw number: a pointer to the * exception object in the WASM heap. Turns it into the readable message * where possible. */ export declare const decodeCvException: (e: unknown) => string; /** * Runs an OpenCV call without letting errors escape. Errors are logged, * passed to onError (if any), and the call returns undefined. */ export declare const cvCall: (fn: () => T, onError?: (msg: string) => void) => T | undefined;