export default canvasScreenshot; export * from "./types.js"; /** * Take a screenshot. * Setting `options.useBlob` to `true` will consequently make the module async and return the latter. * @alias module:canvasScreenshot * @param {HTMLCanvasElement} canvas The canvas element * @param {import("./types.js").CanvasScreenshotOptions} [options={}] * @returns {string | Promise} A `DOMString` or a `Promise` resolving with a `Blob`. * * Type is inferred from the filename extension: * - png for `"image/png"` (default) * - jpg/jpeg for `"image/jpeg"` * - webp for `"image/webp"` */ declare function canvasScreenshot(canvas: HTMLCanvasElement, options?: import("./types.js").CanvasScreenshotOptions): string | Promise;