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