import type { BrowserClientProfilingOptions, BrowserClientReplayOptions, ClientOptions, Event, EventHint, Options, ParameterizedString, Scope, SeverityLevel, UserFeedback } from '@sentry/core'; import { BaseClient } from '@sentry/core'; import type { BrowserTransportOptions } from './transports/types'; /** * Configuration options for the Sentry Browser SDK. * @see @sentry/core Options for more information. */ export type BrowserOptions = Options & BrowserClientReplayOptions & BrowserClientProfilingOptions & { /** * Important: Only set this option if you know what you are doing! * * By default, the SDK will check if `Sentry.init` is called in a browser extension. * In case it is, it will stop initialization and log a warning * because browser extensions require a different Sentry initialization process: * https://docs.sentry.io/platforms/javascript/best-practices/shared-environments/ * * Setting up the SDK in a browser extension with global error monitoring is not recommended * and will likely flood you with errors from other web sites or extensions. This can heavily * impact your quota and cause interference with your and other Sentry SDKs in shared environments. * * If this check wrongfully flags your setup as a browser extension, you can set this * option to `true` to skip the check. * * @default false */ skipBrowserExtensionCheck?: boolean; }; /** * Configuration options for the Sentry Browser SDK Client class * @see BrowserClient for more information. */ export type BrowserClientOptions = ClientOptions & BrowserClientReplayOptions & BrowserClientProfilingOptions & { /** If configured, this URL will be used as base URL for lazy loading integration. */ cdnBaseUrl?: string; }; /** * The Sentry Browser SDK Client. * * @see BrowserOptions for documentation on configuration options. * @see SentryClient for usage documentation. */ export declare class BrowserClient extends BaseClient { /** * Creates a new Browser SDK instance. * * @param options Configuration options for this SDK. */ constructor(options: BrowserClientOptions); /** * @inheritDoc */ eventFromException(exception: unknown, hint?: EventHint): PromiseLike; /** * @inheritDoc */ eventFromMessage(message: ParameterizedString, level?: SeverityLevel, hint?: EventHint): PromiseLike; /** * Sends user feedback to Sentry. * * @deprecated Use `captureFeedback` instead. */ captureUserFeedback(feedback: UserFeedback): void; /** * @inheritDoc */ protected _prepareEvent(event: Event, hint: EventHint, scope?: Scope): PromiseLike; } //# sourceMappingURL=client.d.ts.map