import type { BunaryApp, Route, RouteBuilder } from "../types/index.js"; /** * Safely compile a string pattern to RegExp with error handling. * Provides better error messages for invalid regex patterns. */ export declare function compilePattern(pattern: string, param: string): RegExp; /** * Create a RouteBuilder for a specific route. * Each builder captures its own route reference to avoid shared mutable state issues. */ export declare function createRouteBuilder(route: Route, namedRoutes: Map, app: BunaryApp): RouteBuilder; /** * Wrap a route builder to auto-apply name prefix. * Uses a Proxy to maintain dynamic getter behavior from the original builder. */ export declare function wrapBuilderWithNamePrefix(builder: RouteBuilder, namePrefix: string): RouteBuilder; //# sourceMappingURL=builder.d.ts.map