Rocky_Mountain_Vending/.pnpm-store/v10/files/09/76128e29c2632e5a269fbf6ee772f0c479f337b111f050a8edb09801cca6dc07a0e9fc7ce5227fcd2061cf11b84df703560db89e8d2e7ff81e375ccc5a18f7
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

50 lines
1.6 KiB
Text

interface Context {
[key: string]: unknown;
[key: symbol]: unknown;
}
declare global {
var awslambda: {
InvokeStore?: InvokeStoreBase;
[key: string]: unknown;
};
}
/**
* Base class for AWS Lambda context storage implementations.
* Provides core functionality for managing Lambda execution context.
*
* Implementations handle either single-context (InvokeStoreSingle) or
* multi-context (InvokeStoreMulti) scenarios based on Lambda's execution environment.
*
* @public
*/
export declare abstract class InvokeStoreBase {
static readonly PROTECTED_KEYS: {
readonly REQUEST_ID: symbol;
readonly X_RAY_TRACE_ID: symbol;
readonly TENANT_ID: symbol;
};
abstract getContext(): Context | undefined;
abstract hasContext(): boolean;
abstract get<T = unknown>(key: string | symbol): T | undefined;
abstract set<T = unknown>(key: string | symbol, value: T): void;
abstract run<T>(context: Context, fn: () => T): T;
protected isProtectedKey(key: string | symbol): boolean;
getRequestId(): string;
getXRayTraceId(): string | undefined;
getTenantId(): string | undefined;
}
/**
* Provides access to AWS Lambda execution context storage.
* Supports both single-context and multi-context environments through different implementations.
*
* The store manages protected Lambda context fields and allows storing/retrieving custom values
* within the execution context.
* @public
*/
export declare namespace InvokeStore {
function getInstanceAsync(): Promise<InvokeStoreBase>;
const _testing: {
reset: () => void;
} | undefined;
}
export {};