import { PropBinding, Validator } from './types'; import { Request, Response } from 'express'; export { Request, Response }; export type ActionDecorator = (target: any, propertyKey: string | symbol, parameterIndex: number) => void; /** Bind raw request object */ export declare function Req(): ActionDecorator; /** Bind raw response object */ export declare function Res(): ActionDecorator; /** Binds the `request.user` object. * @deprecated Use `Auth()` when using express-jwt > 6. */ export declare function User(): ActionDecorator; /** Binds the `request.auth` object. */ export declare function Auth(): ActionDecorator; /** Bind the whole request.body object */ export declare function Body(type?: any): ActionDecorator; /** Bind a member of the request.body object */ export declare function Body(name: string, type?: any, optional?: boolean): ActionDecorator; /** Bind an element from query */ export declare function Query(name: string, optional?: boolean): ActionDecorator; export declare function Query(name: string, type: any, optional?: boolean): ActionDecorator; /** Bind an element from param (route) */ export declare function Param(name: string, type?: any): ActionDecorator; /** Internal helper */ export declare function resolver(bind: PropBinding, validator?: Validator): (params: any[], req: Request, res: Response) => any;