/// import { Constructor } from "@bonbons/contracts"; import * as c from "@bonbons/contracts/dist/src/private-api"; export declare function initRoutes(reflect: c.IBonbonsControllerMetadata, propertyKey: string): c.IRoute; export declare function reroute(reflect: c.IBonbonsControllerMetadata, propertyKey: string, payload: Partial): c.IBonbonsControllerMetadata; /** * Define a route method for the controller. default allowed method is 'GET'. * @description * @author Big Mogician * @export * @param {...AllowMethod[]} allowMethods * @returns */ export declare function Method(...allowMethods: c.AllowMethod[]): (target: any, propertyKey: string) => void; export declare const GET: (target: any, propertyKey: string) => void; export declare const POST: (target: any, propertyKey: string) => void; export declare const PUT: (target: any, propertyKey: string) => void; export declare const DELETE: (target: any, propertyKey: string) => void; export declare const PATCH: (target: any, propertyKey: string) => void; export declare const OPTIONS: (target: any, propertyKey: string) => void; export declare const HEAD: (target: any, propertyKey: string) => void; /** * Define a method path for a route. absolute or relative path is supported. * Declare query params name to use static-typed variable. * @description * @author Big Mogician * @export * @param {string} path * @returns */ export declare function Route(path: string): (target: any, propertyKey: string) => void; declare type PipesMethodDecorator = (target: T, propertyKey: string) => void; declare type PipesDecorator = (target: Constructor | T, propertyKey?: string) => void; export declare function Pipes(pipes: c.BonbonsPipeEntry[]): PipesDecorator; export declare function Pipes(pipes: c.BonbonsPipeEntry[], merge: boolean): PipesMethodDecorator; export declare function Middlewares(middlewares: c.KOAMiddleware[]): PipesDecorator; export declare function Middlewares(middlewares: c.KOAMiddleware[], merge: boolean): PipesMethodDecorator; export {};