UNPKG

illustrator.js

Version:

JavaScript image processing library

14 lines (13 loc) 449 B
import { SKRSContext2D } from "@napi-rs/canvas"; import { Layer } from "../../layer/Layer"; export declare type Awaitable<T> = Promise<T> | T; export declare type HistoryCallback = (ctx: SKRSContext2D) => Awaitable<void>; export declare class ToolBox { readonly layer: Layer; autoClear: boolean; history: HistoryCallback[]; constructor(layer: Layer, autoClear?: boolean); save(): this; restore(): this; render(): void; }