import { ConceptAs } from '@dolittle/concepts'; import { Guid } from '@dolittle/rudiments'; /** * Defines the types that can be converted into a {@link EventSourceId}. */ export declare type EventSourceIdLike = Guid | string | EventSourceId; /** * Represents the unique identifier of an event source. */ export declare class EventSourceId extends ConceptAs { /** * Initialises a new instance of the {@link EventSourceId} class. * @param {string} id - The event source id. */ constructor(id: string); /** * Generates a new {@link EventSourceId} with a new random unique identifier. * @returns {EventSourceId} The generated event source id. */ static new(): EventSourceId; /** * Creates an {@link EventSourceId} from a {@link Guid} or a {@link string}. * @param {EventSourceIdLike} id - The event source id. * @returns {EventSourceId} The created event source id concept. */ static from(id: EventSourceIdLike): EventSourceId; } //# sourceMappingURL=EventSourceId.d.ts.map