/** * RSC handler registry for managing per-project handlers * * Supports optional cache injection for testing. * * @module rsc-endpoints/handler-registry */ import { RSCDevServerHandler } from "../orchestrators/index.js"; import { type RSCServerHandlerOptions } from "../orchestrators/handler.js"; /** * Handler cache interface for dependency injection. * Simplified interface that matches LRUCache's essential methods. */ export interface HandlerCache { get(key: string): T | undefined; set(key: string, value: T): void; delete(key: string): boolean; clear(): void; readonly size: number; } export declare function getRSCHandler(projectDir: string, projectId?: string, options?: RSCServerHandlerOptions): RSCDevServerHandler; export declare function invalidateRSCHandlersForProject(projectDir: string, projectId?: string): void; export declare function __injectCacheForTests(cache: HandlerCache | null): void; export declare function __resetRSCHandlerForTests(): void; export declare function __destroyRSCHandlerForTests(): void; export declare function __getTrackedRSCHandlerKeyCountForTests(): number; //# sourceMappingURL=handler-registry.d.ts.map