/** * Format the route registry as a tree for boot-time logging. * * Walks the tree depth-first, indenting children. Per node, shows: * - the segment name * - any node-level middlewares (`mw: Class1, Class2`) * - per-method handler entries (`METHOD → handlerName [request][query][mw: ...]`) * * Output is a single multi-line string — caller pipes through `logger.info` * or similar. Mirrors what the old `AbstractController` constructor logged * per-controller, but walks the unified registry tree instead, so * cross-controller middleware accumulation is visible. * * ANSI codes are emitted unconditionally — looks right in dev consoles, mild * pollution in file/Sentry transports for the one-time boot output. */ import type { RouteRegistry } from './RouteRegistry.ts'; interface FormatOptions { /** Treat the root segment as `/` (default true). */ showRoot?: boolean; } export declare function formatRouteTree(registry: RouteRegistry, options?: FormatOptions): string; export {};