import { type CanvasBrushPreset, type CanvasBrushSwatchOptions } from '@pixerate/editor/canvas'; import type { BrushLibrary } from '@pixerate/editor/brushes'; /** * Tells brushed `ShapeNode`s the canvas zoom so their paint stays sharp. Call it in the component * that renders ``, with a getter of the live zoom. Nodes re-render only when the zoom * crosses a bucket (powers of √2). */ export declare function setShapeNodeZoom(getZoom: () => number): void; /** The bucketed canvas zoom for brushed shape nodes (1 when no `setShapeNodeZoom` is above). */ export declare function getShapeNodeZoom(): () => number; /** * The brushes a freehand stroke can be brushed with (loads the paint engine): the dry presets and, * with `library`, its saved brushes the canvas can paint (each with its `spec`; pass it as the * stroke style's `brushSpec`), read again when the library changes (`dispose` stops that). With * `swatches`, each has a preview image (`renderCanvasBrushSwatch`) for a brush menu. */ export declare function createCanvasBrushes(options?: { swatches?: CanvasBrushSwatchOptions; library?: Pick | null; }): { readonly brushes: (CanvasBrushPreset & { swatch?: string; })[]; readonly loading: boolean; readonly error: string | null; dispose(): void; };