import { Artifact, Generation, GenerationLike } from '@dolittle/sdk.artifacts'; import { EventTypeAlias } from './EventTypeAlias'; import { EventTypeId, EventTypeIdLike } from './EventTypeId'; /** * Represents the type of an event. */ export declare class EventType extends Artifact { readonly alias?: EventTypeAlias | undefined; /** * Initializes a new instance of {@link EventType} class. * @param {EventTypeId} id - The unique identifier of the event type. * @param {Generation} [generation] - Optional generation - will default to {@link generation.first}. * @param {EventTypeAlias} [alias] - Optional alias. */ constructor(id: EventTypeId, generation?: Generation, alias?: EventTypeAlias | undefined); /** * Gets a value indicating whether there is an alias for the Event Type. * @returns {boolean} A value indicating whether there is an alias for the Event Type. */ hasAlias(): boolean; /** @inheritdoc */ toString(): string; /** * Creates an instance of {@link EventType} from an event type id and generation. * @param {EventTypeIdLike} id - The Event Type Id. * @param {GenerationLike} generation - The generation of the Event Type. * @returns {EventType} The created event type. */ static from(id: EventTypeIdLike, generation?: GenerationLike): EventType; } /** * Checks whether or not an object is an instance of {@link EventType}. * @param {any} object - The object to check. * @returns {boolean} True if the object is an {@link EventType}, false if not. */ export declare const isEventType: (object: any) => object is EventType; //# sourceMappingURL=EventType.d.ts.map