1 | import { Attachment, AttachmentItem, DataCategory, Envelope, EnvelopeItemType, TextEncoderInternal } from '@sentry/types';
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 | export declare function createEnvelope<E extends Envelope>(headers: E[0], items?: E[1]): E;
|
8 |
|
9 |
|
10 |
|
11 |
|
12 |
|
13 | export declare function addItemToEnvelope<E extends Envelope>(envelope: E, newItem: E[1][number]): E;
|
14 |
|
15 |
|
16 |
|
17 |
|
18 | export declare function forEachEnvelopeItem<E extends Envelope>(envelope: Envelope, callback: (envelopeItem: E[1][number], envelopeItemType: E[1][number][0]['type']) => void): void;
|
19 |
|
20 |
|
21 |
|
22 | export declare function serializeEnvelope(envelope: Envelope, textEncoder?: TextEncoderInternal): string | Uint8Array;
|
23 |
|
24 |
|
25 |
|
26 | export declare function createAttachmentEnvelopeItem(attachment: Attachment, textEncoder?: TextEncoderInternal): AttachmentItem;
|
27 |
|
28 |
|
29 |
|
30 | export declare function envelopeItemTypeToDataCategory(type: EnvelopeItemType): DataCategory;
|
31 |
|
\ | No newline at end of file |