import type { SerializedCheckIn } from './checkin'; import type { ClientReport } from './clientreport'; import type { DsnComponents } from './dsn'; import type { Event } from './event'; import type { ReplayEvent, ReplayRecordingData } from './replay'; import type { SdkInfo } from './sdkinfo'; import type { SerializedSession, Session, SessionAggregates } from './session'; import type { Transaction } from './transaction'; import type { UserFeedback } from './user'; export declare type DynamicSamplingContext = { trace_id: Transaction['traceId']; public_key: DsnComponents['publicKey']; sample_rate?: string; release?: string; environment?: string; transaction?: string; user_segment?: string; replay_id?: string; }; export declare type EnvelopeItemType = 'client_report' | 'user_report' | 'session' | 'sessions' | 'transaction' | 'attachment' | 'event' | 'profile' | 'replay_event' | 'replay_recording' | 'check_in'; export declare type BaseEnvelopeHeaders = { [key: string]: unknown; dsn?: string; sdk?: SdkInfo; }; export declare type BaseEnvelopeItemHeaders = { [key: string]: unknown; type: EnvelopeItemType; length?: number; }; declare type BaseEnvelopeItem = [ItemHeader & BaseEnvelopeItemHeaders, P]; declare type BaseEnvelope = [EnvelopeHeader & BaseEnvelopeHeaders, Array>]; declare type EventItemHeaders = { type: 'event' | 'transaction' | 'profile'; }; declare type AttachmentItemHeaders = { type: 'attachment'; length: number; filename: string; content_type?: string; attachment_type?: string; }; declare type UserFeedbackItemHeaders = { type: 'user_report'; }; declare type SessionItemHeaders = { type: 'session'; }; declare type SessionAggregatesItemHeaders = { type: 'sessions'; }; declare type ClientReportItemHeaders = { type: 'client_report'; }; declare type ReplayEventItemHeaders = { type: 'replay_event'; }; declare type ReplayRecordingItemHeaders = { type: 'replay_recording'; length: number; }; declare type CheckInItemHeaders = { type: 'check_in'; }; export declare type EventItem = BaseEnvelopeItem; export declare type AttachmentItem = BaseEnvelopeItem; export declare type UserFeedbackItem = BaseEnvelopeItem; export declare type SessionItem = BaseEnvelopeItem | BaseEnvelopeItem; export declare type ClientReportItem = BaseEnvelopeItem; export declare type CheckInItem = BaseEnvelopeItem; declare type ReplayEventItem = BaseEnvelopeItem; declare type ReplayRecordingItem = BaseEnvelopeItem; export declare type EventEnvelopeHeaders = { event_id: string; sent_at: string; trace?: DynamicSamplingContext; }; declare type SessionEnvelopeHeaders = { sent_at: string; }; declare type CheckInEnvelopeHeaders = BaseEnvelopeHeaders; declare type ClientReportEnvelopeHeaders = BaseEnvelopeHeaders; declare type ReplayEnvelopeHeaders = BaseEnvelopeHeaders; export declare type EventEnvelope = BaseEnvelope; export declare type SessionEnvelope = BaseEnvelope; export declare type ClientReportEnvelope = BaseEnvelope; export declare type ReplayEnvelope = [ReplayEnvelopeHeaders, [ReplayEventItem, ReplayRecordingItem]]; export declare type CheckInEvelope = BaseEnvelope; export declare type Envelope = EventEnvelope | SessionEnvelope | ClientReportEnvelope | ReplayEnvelope | CheckInEvelope; export declare type EnvelopeItem = Envelope[1][number]; export {}; //# sourceMappingURL=envelope.d.ts.map