/**
 * Route Discovery Utilities
 *
 * Shared helpers used across route discovery, scoring, and validation.
 */
import type { RouteDefinition } from './types';
/**
 * Find the route whose handler line is closest to (and at or before) the finding line.
 * Falls back to the closest route overall if none are before the finding.
 */
export declare function findClosestRoute(routes: RouteDefinition[], findingLine: number): RouteDefinition | null;
/**
 * Extract a brace-delimited block starting from a given line.
 * Tracks brace depth to find the matching closing brace.
 * Falls back to 50-line limit if no closing brace is found.
 */
export declare function extractBlock(lines: string[], startLine: number): string;
//# sourceMappingURL=utils.d.ts.map