import type { NextFunction, Request, Response } from 'express'; import type { ControllerConstructor, RequestHandler } from './Router.js'; /** * Optional: bind a controller method by function reference (refactor-safe renames). * Prefer tuple form **`[UserController, "index"]`** on {@link Route.get} and friends. * * @typeParam T - Controller instance type. * @param ControllerClass - Controller constructor. * @param action - Method reference (e.g. `UserController.prototype.index`). * @returns Express middleware compatible with {@link Route.get}. */ export declare function bindControllerAction(ControllerClass: ControllerConstructor, action: (this: T, req: Request, res: Response, next: NextFunction) => void | Promise): RequestHandler; //# sourceMappingURL=bindControllerAction.d.ts.map