import { Guid } from '@dolittle/rudiments'; import { ConceptAs } from '@dolittle/concepts'; /** * Defines the types that can be converted into a {@link AggregateRootId}. */ export declare type AggregateRootIdLike = Guid | string | AggregateRootId; /** * Represents the unique identifier of an event type. */ export declare class AggregateRootId extends ConceptAs { /** * Initialises a new instance of the {@link AggregateRootId} class. * @param {Guid} id - The aggregate root id. */ constructor(id: Guid); /** * Creates an {@link AggregateRootId} from a {@link AggregateRootIdLike}. * @param {AggregateRootIdLike} id - The aggregate root id. * @returns {AggregateRootId} The created aggregate root id concept. */ static from(id: AggregateRootIdLike): AggregateRootId; } /** * Checks whether or not an object is an instance of {@link AggregateRootId}. * @param {any} object - The object to check. * @returns {boolean} True if the object is an {@link AggregateRootId}, false if not. */ export declare const isAggregateRootId: (object: any) => object is AggregateRootId; //# sourceMappingURL=AggregateRootId.d.ts.map