/** * Action metadata used to storage information about registered action. */ export interface ActionMetadata { /** * Route to be registered for the action. */ route: string | RegExp; /** * Object on which's method this action is attached. */ object: any; /** * Object's method that will be executed on this action. */ method: string; /** * Action type represents http method used for the registered route. Can be one of the value defined in ActionTypes * class. */ type: string; /** * Additional action options. */ options: ActionOptions; } /** * Extra that can be set to action. */ export interface ActionOptions { /** * If set to true then response will be forced to json (serialized and application/json content-type will be used). */ jsonResponse?: boolean; /** * If set to true then response will be forced to simple string text response. */ textResponse?: boolean; } /** * All action types that can be used for the controller method. */ export declare class ActionType { static CHECKOUT: string; static CONNECT: string; static COPY: string; static DELETE: string; static GET: string; static HEAD: string; static LOCK: string; static MERGE: string; static MKACTIVITY: string; static MKCOL: string; static MOVE: string; static M_SEARCH: string; static NOTIFY: string; static OPTIONS: string; static PATCH: string; static POST: string; static PROPFIND: string; static PROPPATCH: string; static PURGE: string; static PUT: string; static REPORT: string; static SEARCH: string; static SUBSCRIBE: string; static TRACE: string; static UNLOCK: string; static UNSUBSCRIBE: string; }