import type { Middleware, MiddlewareStack } from "../Contracts/Http/Middleware"; import ControllerMiddlewareOptions, { IOptions } from "./ControllerMiddlewareOptions"; declare abstract class Controller { protected middlewares: { middleware: string | Middleware; options: IOptions; }[]; /** * Execute an action on the controller. */ callAction(this: any, method: string, parameters: any[]): any; /** * Register middleware on the controller */ middleware(middleware: MiddlewareStack): ControllerMiddlewareOptions; /** * Get the middleware assigned to the controller. */ getMiddleware(): { middleware: string | Middleware; options: IOptions; }[]; } export default Controller;