export declare const response: {
_explicitStatus: boolean;
_body: any;
res: any;
ctx: any;
/**
* Return response header.
*
* @return {Object}
* @api public
*/
readonly header: any;
/**
* Return response header, alias as response.header
*
* @return {Object}
* @api public
*/
readonly headers: any;
/**
* Get response body.
*
* @return {Mixed}
* @api public
*/
body: any;
/**
* Set the ETag of a response.
* This will normalize the quotes if necessary.
*
* this.response.etag = 'md5hashsum';
* this.response.etag = '"md5hashsum"';
* this.response.etag = 'W/"123456789"';
*
* @param {String} etag
* @api public
*/
etag: any;
/**
* Returns true if the header identified by name is currently set in the outgoing headers.
* The header name matching is case-insensitive.
*
* Examples:
*
* this.has('Content-Type');
* // => true
*
* this.get('content-type');
* // => true
*
* @param {String} field
* @return {boolean}
* @api public
*/
has(field: any): any;
/**
* Set header `field` to `val`, or pass
* an object of header fields.
*
* Examples:
*
* this.set('Foo', ['bar', 'baz']);
* this.set('Accept', 'application/json');
* this.set({ Accept: 'text/plain', 'X-API-Key': 'tobi' });
*
* @param {String|Object|Array} field
* @param {String} val
* @api public
*/
set(field: any, val?: any): void;
/**
* Append additional header `field` with value `val`.
*
* Examples:
*
* ```
* this.append('Link', ['', '']);
* this.append('Set-Cookie', 'foo=bar; Path=/; HttpOnly');
* this.append('Warning', '199 Miscellaneous warning');
* ```
*
* @param {String} field
* @param {String|Array} val
* @api public
*/
append(field: any, val: any): any;
/**
* Return response header.
*
* Examples:
*
* this.get('Content-Type');
* // => "text/plain"
*
* this.get('content-type');
* // => "text/plain"
*
* @param {String} field
* @return {String}
* @api public
*/
get(field: any): any;
type: any;
remove(field: any): void;
status: any;
/**
* Set Content-Length field to `n`.
*
* @param {Number} n
* @api public
*/
length: number;
/**
* Set the Last-Modified date using a string or a Date.
*
* this.response.lastModified = new Date();
* this.response.lastModified = '2013-09-13';
*
* @param {String|Date} type
* @api public
*/
lastModified: Date;
/**
* Check whether the response is one of the listed types.
* Pretty much the same as `this.request.is()`.
*
* @param {String|String[]} [type]
* @param {String[]} [types]
* @return {String|false}
* @api public
*/
is(type: any, ...types: any[]): any;
/**
* Check if a header has been written to the socket.
*
* @return {Boolean}
* @api public
*/
readonly headerSent: any;
/**
* Vary on `field`.
*
* @param {String} field
* @api public
*/
vary(field: any): void;
/**
* Perform a 302 redirect to `url`.
*
* The string "back" is special-cased
* to provide Referrer support, when Referrer
* is not present `alt` or "/" is used.
*
* Examples:
*
* this.redirect('back');
* this.redirect('back', '/index.html');
* this.redirect('/login');
* this.redirect('http://google.com');
*
* @param {String} url
* @param {String} [alt]
* @api public
*/
redirect(url: string, alt?: string): void;
/**
* Inspect implementation.
*
* @return {Object}
* @api public
*/
inspect(): any;
/**
* Return JSON representation.
*
* @return {Object}
* @api public
*/
toJSON(): any;
end(): void;
};
//# sourceMappingURL=response.d.ts.map