/*! * @package @coolgk/node-mvc * @version 1.0.21 * @link https://github.com/coolgk/node-mvc * @license MIT * @author Daniel Gong * * Copyright (c) 2017 Daniel Gong . All rights reserved. * Licensed under the MIT License. */ /*! * Copyright (c) 2017 Daniel Gong . All rights reserved. * Licensed under the MIT License. */ export interface IResponse { code?: number; json?: any; status?: string; file?: { path: string; name?: string; type?: string; }; [index: string]: any; } export declare enum ResponseError { File_Not_Found = "File Not Found" } export declare class Response { private _response; getResponse(): IResponse; send(data: { [propName: string]: any; }, code?: number): IResponse; json(json: any, code?: number): IResponse; text(text: string, code?: number): IResponse; file(path: string, name?: string, type?: string, code?: number): IResponse; } export default Response;