UNPKG

911 BTypeScriptView Raw
1import type { Hub } from '@sentry/types';
2/**
3 * This is for legacy reasons, and returns a proxy object instead of a hub to be used.
4 *
5 * @deprecated Use the methods directly from the top level Sentry API (e.g. `Sentry.withScope`)
6 * For more information see our migration guide for
7 * [replacing `getCurrentHub` and `Hub`](https://github.com/getsentry/sentry-javascript/blob/develop/MIGRATION.md#deprecate-hub)
8 * usage
9 */
10export declare function getCurrentHubShim(): Hub;
11/**
12 * Returns the default hub instance.
13 *
14 * If a hub is already registered in the global carrier but this module
15 * contains a more recent version, it replaces the registered version.
16 * Otherwise, the currently registered hub will be returned.
17 *
18 * @deprecated Use the respective replacement method directly instead.
19 */
20export declare const getCurrentHub: typeof getCurrentHubShim;
21//# sourceMappingURL=getCurrentHubShim.d.ts.map
\No newline at end of file