/** * Identyfikatory i correlation tracking. * * Każda akcja użytkownika ma `CorrelationId`, który propaguje się przez * EventBus, DataBus, Transport, Audit i Telemetry — umożliwia * end-to-end śledzenie i forensics. */ export type CorrelationId = string & { readonly _brand: 'CorrelationId'; }; export type SessionId = string & { readonly _brand: 'SessionId'; }; export type WidgetId = string & { readonly _brand: 'WidgetId'; }; export type PageId = string & { readonly _brand: 'PageId'; }; export type DatasourceId = string & { readonly _brand: 'DatasourceId'; }; export type EventId = string & { readonly _brand: 'EventId'; }; /** Generator correlation ID — w mock mode deterministyczny, w prod zwykle UUID v4/v7. */ export interface CorrelationIdGenerator { next(): CorrelationId; } export declare const CORRELATION_ID_GENERATOR: import("../index.js").EchelonToken; /** Helper do brandowania stringów w miejscach, gdzie dostajemy plain string z configu. */ export declare const asCorrelationId: (value: string) => CorrelationId; export declare const asSessionId: (value: string) => SessionId; export declare const asWidgetId: (value: string) => WidgetId; export declare const asPageId: (value: string) => PageId; export declare const asDatasourceId: (value: string) => DatasourceId; export declare const asEventId: (value: string) => EventId; //# sourceMappingURL=index.d.ts.map