import { Guid } from '@dolittle/rudiments'; import { ConceptAs } from '@dolittle/concepts'; /** * A unique identifier to allow us to trace actions and their consequences throughout the system. */ export declare class CorrelationId extends ConceptAs { /** * Initialises a new instance of the {@link CorrelationId} class. * @param {Guid} id - The correlation id. */ constructor(id: Guid); /** * Represents the system correlation identifier. */ static system: CorrelationId; /** * Creates a {@link CorrelationId} from a {@link Guid} or a {@link string}. * @param {CorrelationId | Guid | string} id - The correlation id. * @returns {CorrelationId} The created correlation id concept. */ static from(id: CorrelationId | Guid | string): CorrelationId; /**. * Generates a new {@link CorrelationId} * @returns {CorrelationId} A new random correlation id. */ static new(): CorrelationId; } //# sourceMappingURL=CorrelationId.d.ts.map