import { PointLocation } from "../../../../ImageViewer/Models/SelectionBoxTypes"; import { PaintToolbar } from "./../../PaintToolbar"; import { SelectedRegion } from "./SelectedRegion"; import { InternalFilterName } from "./../InternalFilters"; import { SelectedRegionState, SelectionToolType } from "./types"; export declare class SelectedRegionsDispatcher { context: PaintToolbar; _selectedRegion: SelectedRegion | null; _copiedRegionState?: SelectedRegionState; constructor(context: PaintToolbar); get hasDirtyRegions(): boolean; get hasSelectedRegions(): boolean; get hasUnclosedRegion(): boolean; applyRegionFilter(name: InternalFilterName, intencityValue1?: number, intencityValue2?: number, replaceSameFilter?: boolean): Promise; selectAll(): void; execCopy(): boolean; copyImage(copiedImage?: HTMLCanvasElement): void; execDelete(): Promise; execPaste(destPoint: PointLocation): Promise; /** * Checks if the last applied region filter matches the given filter name. * * @param {InternalFilterName} name - The name of the filter to check against. * @returns {boolean} - True if the last applied filter matches the given name, false otherwise. */ isLastAppliedFilter(name: InternalFilterName): boolean; /** * Create or update selected region. * @param s */ updateSelectedRegion(s: SelectedRegionState, skipUndo?: boolean): void; /** * Returns true when changes in the selection regions are canceled. * @returns */ cancelChanges(): boolean; commitSelectedRegion(resetCopiedImage?: boolean): void; clearRegionsSelection(commit?: boolean): void; ensureSelectedRegion(selectionToolType: SelectionToolType, owner: PaintToolbar): void; finishSelectedRegion(force?: boolean): boolean; getSelectedClipPaths(relativeToBounds?: boolean): Path2D[]; hasRegionWithType(t: SelectionToolType): boolean | null; invalidate(): void; onPointerStart(point: PointLocation): void; onPointerMove(point: PointLocation): void; onPointerEnd(point: PointLocation): boolean | undefined; }