import { AsyncLocalStorage } from 'node:async_hooks'; /** * Context for storing request-scoped API key */ export interface ApiKeyContext { apiKey?: string; } /** * AsyncLocalStorage instance for managing API key context */ export declare const apiKeyStorage: AsyncLocalStorage; /** * Get the current API key from context or environment */ export declare function getCurrentApiKey(): string | undefined; /** * Run a function with a specific API key context */ export declare function runWithApiKey(apiKey: string | undefined, fn: () => T): T;