import type { Client, DsnLike, Integration, Options, UserFeedback } from '@sentry/core'; import type { BrowserOptions } from './client'; /** Get the default integrations for the browser SDK. */ export declare function getDefaultIntegrations(options: Options): Integration[]; /** * The Sentry Browser SDK Client. * * To use this SDK, call the {@link init} function as early as possible when * loading the web page. To set context information or send manual events, use * the provided methods. * * @example * * ``` * * import { init } from '@sentry/browser'; * * init({ * dsn: '__DSN__', * // ... * }); * ``` * * @example * ``` * * import { addBreadcrumb } from '@sentry/browser'; * addBreadcrumb({ * message: 'My Breadcrumb', * // ... * }); * ``` * * @example * * ``` * * import * as Sentry from '@sentry/browser'; * Sentry.captureMessage('Hello, world!'); * Sentry.captureException(new Error('Good bye')); * Sentry.captureEvent({ * message: 'Manual', * stacktrace: [ * // ... * ], * }); * ``` * * @see {@link BrowserOptions} for documentation on configuration options. */ export declare function init(browserOptions?: BrowserOptions): Client | undefined; /** * All properties the report dialog supports */ export interface ReportDialogOptions { [key: string]: any; eventId?: string; dsn?: DsnLike; user?: { email?: string; name?: string; }; lang?: string; title?: string; subtitle?: string; subtitle2?: string; labelName?: string; labelEmail?: string; labelComments?: string; labelClose?: string; labelSubmit?: string; errorGeneric?: string; errorFormEntry?: string; successMessage?: string; /** Callback after reportDialog showed up */ onLoad?(this: void): void; /** Callback after reportDialog closed */ onClose?(this: void): void; } /** * Present the user with a report dialog. * * @param options Everything is optional, we try to fetch all info need from the global scope. */ export declare function showReportDialog(options?: ReportDialogOptions): void; /** * This function is here to be API compatible with the loader. * @hidden */ export declare function forceLoad(): void; /** * This function is here to be API compatible with the loader. * @hidden */ export declare function onLoad(callback: () => void): void; /** * Captures user feedback and sends it to Sentry. * * @deprecated Use `captureFeedback` instead. */ export declare function captureUserFeedback(feedback: UserFeedback): void; //# sourceMappingURL=sdk.d.ts.map