import { Uuid } from '../../Type/Definition/index.js'; import { EventIdentifier } from '../../Type/Enum/index.js'; type DeleteElementEventDetails = { elementId: Uuid; result: Promise | null; }; /** * The DeleteElementEvent corresponds to the DeleteElementEndpoint. * * Browser event can be emitted by code that does not have direct access to the Ember Nexus Web SDK instance. * * @see [Web SDK: Delete element event](https://ember-nexus.github.io/web-sdk/#/browser-events/element/delete-element) */ declare class DeleteElementEvent extends CustomEvent { static type: EventIdentifier; /** * Creates a new DeleteElementEvent. * * @param elementId The Uuid of the element which should be deleted. */ constructor(elementId: Uuid); /** * Returns the Uuid of the element which should be deleted. */ getElementId(): Uuid; /** * Returns null by default or a promise if the event is handled. */ getResult(): Promise | null; /** * Used to set the result of the event. * * @param result */ setResult(result: Promise): void; } export { DeleteElementEvent, DeleteElementEventDetails };