import { ContextData, ContextAdapter } from './baseContext.js'; /** * React Context Adapter using React.cache() for request-scoped storage. * * This adapter is designed for React Server Components and provides * automatic request isolation through React's cache mechanism. * All static methods operate on the same cached data within a request. */ export declare class ReactContextAdapter implements ContextAdapter { /** * Initialize context (clears existing data) */ initializeContext(): void; /** * Set a specific piece of context data by key */ set(key: K, value: ContextData[K]): void; /** * Get a specific piece of context data by key */ get(key: K): ContextData[K] | undefined; /** * Get all context data */ getData(): ContextData | undefined; /** * Set/merge context data */ setData(value: Partial): void; /** * Clear all context data */ clear(): void; } export default ReactContextAdapter;