1 | import { BaseBackend } from '@sentry/core';
|
2 | import { Event, EventHint, Options, Severity, Transport } from '@sentry/types';
|
3 | /**
|
4 | * Configuration options for the Sentry Browser SDK.
|
5 | * @see BrowserClient for more information.
|
6 | */
|
7 | export interface BrowserOptions extends Options {
|
8 | /**
|
9 | * A pattern for error URLs which should exclusively be sent to Sentry.
|
10 | * This is the opposite of {@link Options.denyUrls}.
|
11 | * By default, all errors will be sent.
|
12 | */
|
13 | allowUrls?: Array<string | RegExp>;
|
14 | /**
|
15 | * A pattern for error URLs which should not be sent to Sentry.
|
16 | * To allow certain errors instead, use {@link Options.allowUrls}.
|
17 | * By default, all errors will be sent.
|
18 | */
|
19 | denyUrls?: Array<string | RegExp>;
|
20 | /** @deprecated use {@link Options.allowUrls} instead. */
|
21 | whitelistUrls?: Array<string | RegExp>;
|
22 | /** @deprecated use {@link Options.denyUrls} instead. */
|
23 | blacklistUrls?: Array<string | RegExp>;
|
24 | }
|
25 | /**
|
26 | * The Sentry Browser SDK Backend.
|
27 | * @hidden
|
28 | */
|
29 | export declare class BrowserBackend extends BaseBackend<BrowserOptions> {
|
30 | /**
|
31 | * @inheritDoc
|
32 | */
|
33 | eventFromException(exception: unknown, hint?: EventHint): PromiseLike<Event>;
|
34 | /**
|
35 | * @inheritDoc
|
36 | */
|
37 | eventFromMessage(message: string, level?: Severity, hint?: EventHint): PromiseLike<Event>;
|
38 | /**
|
39 | * @inheritDoc
|
40 | */
|
41 | protected _setupTransport(): Transport;
|
42 | }
|
43 | //# sourceMappingURL=backend.d.ts.map |
\ | No newline at end of file |