/** * Call this function to let the libs require extra dependencies on nodejs in order * to polyfill some browser api's (mostly image compression/decompression) * `NodePolifill.polyfillRequire(require);` should solve most cases */ export declare function polyfillRequire(requirefn: (mod: string) => any): void; export declare function requireSharp(): any; export declare function requireNodeCanvas(): any; export declare function requireElectronCommon(): any; export declare function imageDataToDrawable(buf: ImageData): any; export declare function createCanvas(w: number, h: number): HTMLCanvasElement; export declare function imageDataToFileBytes(buf: ImageData, format: "image/png" | "image/webp", quality?: any): Promise; export declare function imageDataFromBase64(base64: string): Promise; export declare function imageDataFromBuffer(buffer: Uint8Array): Promise; //# sourceMappingURL=nodepolyfill.d.ts.map