1 | import type { Envelope, InternalBaseTransportOptions, Transport } from '@sentry/types';
|
2 | export declare const MIN_DELAY = 100;
|
3 | export declare const START_DELAY = 5000;
|
4 | export interface OfflineStore {
|
5 | insert(env: Envelope): Promise<void>;
|
6 | pop(): Promise<Envelope | undefined>;
|
7 | }
|
8 | export type CreateOfflineStore = (options: OfflineTransportOptions) => OfflineStore;
|
9 | export interface OfflineTransportOptions extends InternalBaseTransportOptions {
|
10 | |
11 |
|
12 |
|
13 | createStore?: CreateOfflineStore;
|
14 | |
15 |
|
16 |
|
17 |
|
18 |
|
19 | flushAtStartup?: boolean;
|
20 | |
21 |
|
22 |
|
23 |
|
24 |
|
25 |
|
26 |
|
27 |
|
28 |
|
29 | shouldStore?: (envelope: Envelope, error: Error, retryDelay: number) => boolean | Promise<boolean>;
|
30 | }
|
31 |
|
32 |
|
33 |
|
34 |
|
35 |
|
36 | export declare function makeOfflineTransport<TO>(createTransport: (options: TO) => Transport): (options: TO & OfflineTransportOptions) => Transport;
|
37 |
|
\ | No newline at end of file |