import { ISelectionService } from './selectionService/ISelectionService.js'; import { IUndoService } from './undoService/IUndoService.js'; import { BaseServiceContainer } from './BaseServiceContainer.js'; import { IDesignContext } from '../widgets/designerView/IDesignContext.js'; import { IDesignerCanvas } from '../widgets/designerView/IDesignerCanvas.js'; import { IStylesheetService } from './stylesheetService/IStylesheetService.js'; import { IDesignItemDocumentPositionService } from './designItemDocumentPositionService/IDesignItemDocumentPositionService.js'; import { DocumentContainer } from '../documentContainer.js'; import { ICollaborationService } from './collaborationService/ICollaborationService.js'; import { TypedEvent } from '@node-projects/base-custom-webcomponent'; import type { EditingDocument } from '../EditingDocument.js'; import { IDesignItem } from '../item/IDesignItem.js'; interface InstanceServiceNameMap { "undoService": IUndoService; "selectionService": ISelectionService; "stylesheetService": IStylesheetService; "designItemDocumentPositionService": IDesignItemDocumentPositionService; } interface IContentChangedParsed { changeType: 'parsed'; } interface IContentChangedWithDesignItems { changeType: "added" | "removed" | "moved"; designItems: IDesignItem[]; } interface IContentChangedChangeWithDesignItems { changeType: "changed"; designItems: IDesignItem[]; type: "attribute" | "css" | "property"; name: string; oldValue?: any; newValue?: any; } export type IContentChanged = IContentChangedParsed | IContentChangedWithDesignItems | IContentChangedChangeWithDesignItems; export declare class InstanceServiceContainer extends BaseServiceContainer { designContext: IDesignContext; private _designerCanvas; readonly onDesignerCanvasChanged: TypedEvent<{ oldCanvas: IDesignerCanvas; newCanvas: IDesignerCanvas; }>; get designerCanvas(): IDesignerCanvas; set designerCanvas(value: IDesignerCanvas); editingDocument?: EditingDocument; /** Internal attachment cleanup, including the owning view UI. */ detachView?: () => void; private _rootDesignItem; collaborationService?: ICollaborationService; designer: any; documentContainer: DocumentContainer; /** Event fired when the content of the designer changes, but raised from UndoService, so it should not be used to modify the elements again */ readonly onContentChanged: TypedEvent; constructor(designerCanvas?: IDesignerCanvas); get rootDesignItem(): IDesignItem; set rootDesignItem(value: IDesignItem); /** Visual work is optional; document events must not depend on this. */ refreshExtensions(items: IDesignItem[]): void; get undoService(): IUndoService; get selectionService(): ISelectionService; get stylesheetService(): IStylesheetService; get designItemDocumentPositionService(): IDesignItemDocumentPositionService; } export {};