/** * Route caching utility to avoid re-discovering routes on every request */ export interface CachedRoute { path: string; handlers: Record; middleware?: Function | Function[]; } declare class RouteCache { private cache; private initialized; /** * Check if routes for a directory have been cached */ has(dir: string): boolean; /** * Get cached routes for a directory */ get(dir: string): CachedRoute[] | undefined; /** * Set cached routes for a directory */ set(dir: string, routes: CachedRoute[]): void; /** * Clear all cached routes */ clear(): void; /** * Clear routes for a specific directory */ clearDir(dir: string): void; } export declare const routeCache: RouteCache; export {}; //# sourceMappingURL=cache.d.ts.map