import { ISelectionService } from './ISelectionService.js';
import { IDesignItem } from '../../item/IDesignItem.js';
import { ISelectionChangedEvent } from './ISelectionChangedEvent.js';
import { TypedEvent } from '@node-projects/base-custom-webcomponent';
import { IDesignerCanvas } from '../../widgets/designerView/IDesignerCanvas.js';
import { ISelectionRefreshEvent } from './ISelectionRefreshEvent.js';
export declare class SelectionService implements ISelectionService {
    primarySelection: IDesignItem;
    selectedElements: IDesignItem[];
    _designerCanvas: IDesignerCanvas;
    _undoSelectionChanges: boolean;
    constructor(designerCanvas: IDesignerCanvas, undoSelectionChanges: boolean);
    setSelectedElements(designItems: IDesignItem[], event?: Event): void;
    setSelectionByTextRange(positionStart: number, positionEnd: number): void;
    _withoutUndoSetSelectedElements(designItems: IDesignItem[], event?: Event): void;
    clearSelectedElements(): void;
    isSelected(designItem: IDesignItem): boolean;
    readonly onSelectionChanged: TypedEvent<ISelectionChangedEvent>;
    readonly onSelectionRefresh: TypedEvent<ISelectionRefreshEvent>;
}
