1 | import type { OfflineTransportOptions } from '@sentry/core';
|
2 | import type { InternalBaseTransportOptions, Transport } from '@sentry/types';
|
3 | import type { TextDecoderInternal } from '@sentry/utils';
|
4 | type Store = <T>(callback: (store: IDBObjectStore) => T | PromiseLike<T>) => Promise<T>;
|
5 |
|
6 | export declare function createStore(dbName: string, storeName: string): Store;
|
7 |
|
8 | export declare function insert(store: Store, value: Uint8Array | string, maxQueueSize: number): Promise<void>;
|
9 |
|
10 | export declare function pop(store: Store): Promise<Uint8Array | string | undefined>;
|
11 | export interface BrowserOfflineTransportOptions extends OfflineTransportOptions {
|
12 | |
13 |
|
14 |
|
15 |
|
16 | dbName?: string;
|
17 | |
18 |
|
19 |
|
20 |
|
21 | storeName?: string;
|
22 | |
23 |
|
24 |
|
25 |
|
26 | maxQueueSize?: number;
|
27 | |
28 |
|
29 |
|
30 |
|
31 | textDecoder?: TextDecoderInternal;
|
32 | }
|
33 |
|
34 |
|
35 |
|
36 | export declare function makeBrowserOfflineTransport<T extends InternalBaseTransportOptions>(createTransport: (options: T) => Transport): (options: T & BrowserOfflineTransportOptions) => Transport;
|
37 | export {};
|
38 |
|
\ | No newline at end of file |