import type { CanvasRenderingContext2D as SkiaCanvasRenderingContext2D } from 'skia-canvas'; /** * Returns builtin Node.js modules or throws an error saying that the method is only implemented in Node.js. * @param methodName - Name of the method that calls this function * @returns - The `fs`, `path` and `url` Node.js modules. */ export declare function getNodeApiOrThrow(methodName: string): { fs: typeof import("node:fs"); path: import("path").PlatformPath; url: typeof import("node:url"); }; /** * Returns a 2D canvas context for rendering on the browser or Node.js. * @param width - Width of the canvas. * @param height - Height of the canvas. * @returns The initialised canvas context. */ export declare function getCanvasContext(width: number, height: number): OffscreenCanvasRenderingContext2D | SkiaCanvasRenderingContext2D; //# sourceMappingURL=cross_platform.d.ts.map