UNPKG

754 BTypeScriptView Raw
1import { Event, Response, SentryRequest, Session, TransportOptions } from '@sentry/types';
2import { BaseTransport } from './base';
3import { FetchImpl } from './utils';
4/** `fetch` based transport */
5export declare class FetchTransport extends BaseTransport {
6 /**
7 * Fetch API reference which always points to native browser implementation.
8 */
9 private _fetch;
10 constructor(options: TransportOptions, fetchImpl?: FetchImpl);
11 /**
12 * @param sentryRequest Prepared SentryRequest to be delivered
13 * @param originalPayload Original payload used to create SentryRequest
14 */
15 protected _sendRequest(sentryRequest: SentryRequest, originalPayload: Event | Session): PromiseLike<Response>;
16}
17//# sourceMappingURL=fetch.d.ts.map
\No newline at end of file