import { Entity } from '@lastolivegames/becsy'; import type { SerializedNode } from '../types/serialized-node'; export type DataURLType = 'image/png' | 'image/jpeg' | 'image/webp' | 'image/bmp'; export declare class RasterScreenshotRequest { /** * The default type is image/png. */ type: DataURLType; /** * The image quality between 0 and 1 for image/jpeg and image/webp. */ encoderOptions: number; /** * Whether to draw grid on the image. */ grid: boolean; /** * Canvas target. */ canvas: Entity; /** * Whether to download the image. */ download: boolean; /** * Nodes to export. */ nodes: SerializedNode[]; } export declare class VectorScreenshotRequest { /** * Whether to draw grid on the image. */ grid: boolean; /** * Canvas target. */ canvas: Entity; /** * Whether to download the image. */ download: boolean; /** * Nodes to export. */ nodes: SerializedNode[]; } export declare class Screenshot { dataURL: string; svg: string; /** * Canvas target. */ canvas: Entity; /** * Whether to download the image. */ download: boolean; }