export interface RequestContext { apiBaseUrl: string; brainKey: string; jwtToken: string; /** 同一个 brainKey 下的 conversation-state 读写器(HTTP 模式下从 store 借用,stdio 下可以是全局单例) */ convState: ConvStateHandle; } export interface ConvStateHandle { get(): string | null; set(v: string | null): void; getFeedback(): string | null; consumeFeedback(): string | null; pushFeedback(v: unknown): void; } export declare class ConvStateStore { private map; getHandle(brainKey: string): ConvStateHandle; private getEntry; private touch; private evictIfNeeded; /** 测试辅助 */ _clear(): void; _size(): number; } /** * 全局单例 store — stdio 模式/tests 也会用到,HTTP 模式的 app 实例也直接用它。 * 不同 brainKey 天然隔离。 */ export declare const globalConvStore: ConvStateStore; //# sourceMappingURL=request-context.d.ts.map