@sentry/browser
Version:
Official Sentry SDK for browsers
33 lines • 1.1 kB
TypeScript
import { BaseClient, Scope } from '@sentry/core';
import { Event, EventHint } from '@sentry/types';
import { BrowserBackend, BrowserOptions } from './backend';
import { ReportDialogOptions } from './helpers';
/**
* The Sentry Browser SDK Client.
*
* @see BrowserOptions for documentation on configuration options.
* @see SentryClient for usage documentation.
*/
export declare class BrowserClient extends BaseClient<BrowserBackend, BrowserOptions> {
/**
* Creates a new Browser SDK instance.
*
* @param options Configuration options for this SDK.
*/
constructor(options?: BrowserOptions);
/**
* Show a report dialog to the user to send feedback to a specific event.
*
* @param options Set individual options for the dialog
*/
showReportDialog(options?: ReportDialogOptions): void;
/**
* @inheritDoc
*/
protected _prepareEvent(event: Event, scope?: Scope, hint?: EventHint): PromiseLike<Event | null>;
/**
* @inheritDoc
*/
protected _sendEvent(event: Event): void;
}
//# sourceMappingURL=client.d.ts.map