UNPKG

1.1 kBTypeScriptView Raw
1import { BaseClient, Scope } from '@sentry/core';
2import { Event, EventHint } from '@sentry/types';
3import { BrowserBackend, BrowserOptions } from './backend';
4import { ReportDialogOptions } from './helpers';
5/**
6 * The Sentry Browser SDK Client.
7 *
8 * @see BrowserOptions for documentation on configuration options.
9 * @see SentryClient for usage documentation.
10 */
11export declare class BrowserClient extends BaseClient<BrowserBackend, BrowserOptions> {
12 /**
13 * Creates a new Browser SDK instance.
14 *
15 * @param options Configuration options for this SDK.
16 */
17 constructor(options?: BrowserOptions);
18 /**
19 * Show a report dialog to the user to send feedback to a specific event.
20 *
21 * @param options Set individual options for the dialog
22 */
23 showReportDialog(options?: ReportDialogOptions): void;
24 /**
25 * @inheritDoc
26 */
27 protected _prepareEvent(event: Event, scope?: Scope, hint?: EventHint): PromiseLike<Event | null>;
28 /**
29 * @inheritDoc
30 */
31 protected _sendEvent(event: Event): void;
32}
33//# sourceMappingURL=client.d.ts.map
\No newline at end of file