import { type Brush, type BrushHostProfile, type BrushLibrary, type BrushPreviewRenderer } from '@pixerate/editor/brushes'; interface Props { /** The shared brush library: saves go here, so every editor on it gets the brush. */ library: BrushLibrary; /** The brush to edit (a library id); `null` or absent starts a new brush for the host. */ brushId?: string | null; /** The host the brush is edited for: the editor shows only what it uses. */ profile: BrushHostProfile; /** Draws the preview stroke (the host's renderer, as for `preview_brush`). Without it there is no preview. */ renderPreview?: BrushPreviewRenderer; /** * What a transparent preview is shown on (#rrggbb, default white); the renderer's own `paper` * wins. The preview colour is chosen to read on it (`brushPreviewColours`). */ previewPaper?: string; /** A fixed preview colour instead (overrides the brush's own and the contrast check). */ previewColor?: string; /** Called with the brush as saved (a copy has a new id): e.g. pick it in the host. */ onsaved?: (brush: Brush) => void; /** With it, a Close button. */ onclose?: () => void; class?: string; } declare const BrushLibraryEditor: import("svelte").Component; type BrushLibraryEditor = ReturnType; export default BrushLibraryEditor;