import "reflect-metadata"; import { ActionOptions } from "./../metadata/ActionMetadata"; /** * Registers an action to be executed when GET request comes on a given route. * Applied to controller class methods. * * @param route When request comes to this route this action will be executed * @param options Extra action options to be applied */ export declare function Get(route?: RegExp, options?: ActionOptions): Function; export declare function Get(route?: string, options?: ActionOptions): Function; /** * Registers an action to be executed when POST request comes on a given route. * Applied to controller class methods. * * @param route When request comes to this route this action will be executed * @param options Extra action options to be applied */ export declare function Post(route?: RegExp, options?: ActionOptions): Function; export declare function Post(route?: string, options?: ActionOptions): Function; /** * Registers an action to be executed when PUT request comes on a given route. * Applied to controller class methods. * * @param route When request comes to this route this action will be executed * @param options Extra action options to be applied */ export declare function Put(route?: RegExp, options?: ActionOptions): Function; export declare function Put(route?: string, options?: ActionOptions): Function; /** * Registers an action to be executed when PATCH request comes on a given route. * Applied to controller class methods. * * @param route When request comes to this route this action will be executed * @param options Extra action options to be applied */ export declare function Patch(route?: RegExp, options?: ActionOptions): Function; export declare function Patch(route?: string, options?: ActionOptions): Function; /** * Registers an action to be executed when DELETE request comes on a given route. * Applied to controller class methods. * * @param route When request comes to this route this action will be executed * @param options Extra action options to be applied */ export declare function Delete(route?: RegExp, options?: ActionOptions): Function; export declare function Delete(route?: string, options?: ActionOptions): Function; /** * Registers an action to be executed when HEAD request comes on a given route. * Applied to controller class methods. * * @param route When request comes to this route this action will be executed * @param options Extra action options to be applied */ export declare function Head(route?: RegExp, options?: ActionOptions): Function; export declare function Head(route?: string, options?: ActionOptions): Function; /** * Registers an action to be executed when OPTIONS request comes on a given route. * Applied to controller class methods. * * @param route When request comes to this route this action will be executed * @param options Extra action options to be applied */ export declare function Options(route?: RegExp, options?: ActionOptions): Function; export declare function Options(route?: string, options?: ActionOptions): Function; /** * Registers an action to be executed when request with specified method comes on a given route. * Applied to controller class methods. * * @param method Http method to be registered. All avalible http methods are listed in ActionType class * @param route When request comes to this route this action will be executed * @param options Extra action options to be applied */ export declare function Method(method: string, route?: RegExp, options?: ActionOptions): Function; export declare function Method(method: string, route?: string, options?: ActionOptions): Function;