1 | import type { Client } from './client';
|
2 | import type { Envelope } from './envelope';
|
3 | import type { TextEncoderInternal } from './textencoder';
|
4 | export declare type TransportRequest = {
|
5 | body: string | Uint8Array;
|
6 | };
|
7 | export declare type TransportMakeRequestResponse = {
|
8 | statusCode?: number;
|
9 | headers?: {
|
10 | [key: string]: string | null;
|
11 | 'x-sentry-rate-limits': string | null;
|
12 | 'retry-after': string | null;
|
13 | };
|
14 | };
|
15 | export interface InternalBaseTransportOptions {
|
16 | bufferSize?: number;
|
17 | recordDroppedEvent: Client['recordDroppedEvent'];
|
18 | textEncoder?: TextEncoderInternal;
|
19 | }
|
20 | export interface BaseTransportOptions extends InternalBaseTransportOptions {
|
21 | url: string;
|
22 | }
|
23 | export interface Transport {
|
24 | send(request: Envelope): PromiseLike<void | TransportMakeRequestResponse>;
|
25 | flush(timeout?: number): PromiseLike<boolean>;
|
26 | }
|
27 | export declare type TransportRequestExecutor = (request: TransportRequest) => PromiseLike<TransportMakeRequestResponse>;
|
28 |
|
\ | No newline at end of file |