Rocky_Mountain_Vending/.pnpm-store/v10/files/e5/df59bc6c7df2c1f9f8e2ed98ea8a3973a40b18d3bf403f6bb3f6ac71a89c66eccdfb60f57ac3b0ae18455528d2b7fff502a2285c67faadb9de6f4789bdf24e
DMleadgen 46d973904b
Initial commit: Rocky Mountain Vending website
Next.js website for Rocky Mountain Vending company featuring:
- Product catalog with Stripe integration
- Service areas and parts pages
- Admin dashboard with Clerk authentication
- SEO optimized pages with JSON-LD structured data

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-12 16:22:15 -07:00

60 lines
2.7 KiB
Text

import { Client } from './client';
import { Scope } from './scope';
import { TraceContext } from './types-hoist/context';
/**
* Get the currently active scope.
*/
export declare function getCurrentScope(): Scope;
/**
* Get the currently active isolation scope.
* The isolation scope is active for the current execution context.
*/
export declare function getIsolationScope(): Scope;
/**
* Get the global scope.
* This scope is applied to _all_ events.
*/
export declare function getGlobalScope(): Scope;
/**
* Creates a new scope with and executes the given operation within.
* The scope is automatically removed once the operation
* finishes or throws.
*/
export declare function withScope<T>(callback: (scope: Scope) => T): T;
/**
* Set the given scope as the active scope in the callback.
*/
export declare function withScope<T>(scope: Scope | undefined, callback: (scope: Scope) => T): T;
/**
* Attempts to fork the current isolation scope and the current scope based on the current async context strategy. If no
* async context strategy is set, the isolation scope and the current scope will not be forked (this is currently the
* case, for example, in the browser).
*
* Usage of this function in environments without async context strategy is discouraged and may lead to unexpected behaviour.
*
* This function is intended for Sentry SDK and SDK integration development. It is not recommended to be used in "normal"
* applications directly because it comes with pitfalls. Use at your own risk!
*/
export declare function withIsolationScope<T>(callback: (isolationScope: Scope) => T): T;
/**
* Set the provided isolation scope as active in the given callback. If no
* async context strategy is set, the isolation scope and the current scope will not be forked (this is currently the
* case, for example, in the browser).
*
* Usage of this function in environments without async context strategy is discouraged and may lead to unexpected behaviour.
*
* This function is intended for Sentry SDK and SDK integration development. It is not recommended to be used in "normal"
* applications directly because it comes with pitfalls. Use at your own risk!
*
* If you pass in `undefined` as a scope, it will fork a new isolation scope, the same as if no scope is passed.
*/
export declare function withIsolationScope<T>(isolationScope: Scope | undefined, callback: (isolationScope: Scope) => T): T;
/**
* Get the currently active client.
*/
export declare function getClient<C extends Client>(): C | undefined;
/**
* Get a trace context for the given scope.
*/
export declare function getTraceContextFromScope(scope: Scope): TraceContext;
//# sourceMappingURL=currentScopes.d.ts.map