import type { HttpMiddleware } from "../middleware/middleware-definition"; import type { RouteDefinition, RouteHandler, RouteOptions } from "./route-definition"; type HandlerInput = RouteHandler | keyof C; /** * Fluent builder used by controllers to declare route definitions. * Handlers can be passed as bound functions or method names. */ export declare class RouteBuilder { private readonly controller; private readonly routes; constructor(controller: C); /** * Resolves handler input to a callable function bound to controller instance. */ private resolveHandler; private findControllerMethodName; private add; private parseArgs; private isRouteOptions; get(path: string, handler: HandlerInput, ...args: Array): this; post(path: string, handler: HandlerInput, ...args: Array): this; put(path: string, handler: HandlerInput, ...args: Array): this; patch(path: string, handler: HandlerInput, ...args: Array): this; delete(path: string, handler: HandlerInput, ...args: Array): this; options(path: string, handler: HandlerInput, ...args: Array): this; head(path: string, handler: HandlerInput, ...args: Array): this; build(): RouteDefinition[]; } export {};