import { type DetectionMask, type Point, type Rect } from "supervision-js-core"; export declare enum MaskBrushMode { Add = "add", Erase = "erase" } export interface MaskBrushEditor { readonly canvas: HTMLCanvasElement; beginStroke(point: Point, options?: { mode?: MaskBrushMode; radius?: number; }): void; extendStroke(point: Point): void; endStroke(): DetectionMask; cancelStroke(): void; seed(mask: DetectionMask): void; clear(): void; getMask(): DetectionMask; getMaskBounds(): Rect | null; getCursor(): { point: Point | null; radius: number; mode: MaskBrushMode; }; setCursor(point: Point | null, options?: { mode?: MaskBrushMode; radius?: number; }): void; subscribeTextureUpdates(listener: () => void): () => void; subscribeCursorUpdates(listener: () => void): () => void; } /** Renderer-neutral connection between a brush editor and its live preview. */ export interface MaskBrushPreviewOptions { readonly editor: MaskBrushEditor; readonly color?: number; readonly alpha?: number; readonly cursorColor?: number; } /** Mutable live bridge for brush painting. Persistence remains host-owned. */ export declare function createMaskBrushEditor(options: { readonly width: number; readonly height: number; readonly canvas?: HTMLCanvasElement; readonly onCursorUpdate?: () => void; readonly onTextureUpdate?: () => void; readonly onCommit?: (mask: DetectionMask) => void; }): MaskBrushEditor; //# sourceMappingURL=mask-brush-editor.d.ts.map