import HTTP from 'http'; import { TagMap } from '@fc3/metrics'; import Response from './../response'; import HttpHeader from './../enum/header'; import StatusCode from './../enum/status-code'; declare class OutgoingResponse extends Response { private native_response; constructor(native_response: HTTP.ServerResponse); sendPromise(promise: Promise): void; render(body: string): void; send(body: object | string | Buffer): void; error(error: Error): void; redirectToUrl(url: string): void; setHeaderValue(key: HttpHeader, value: string | number): this; setStatusCode(status_code: StatusCode): this; getNativeResponse(): HTTP.ServerResponse; protected getCountMetricName(): string; protected getTimingMetricName(): string; protected getMetricTags(): TagMap; /** * Overwrite the parent class's end() implementation in order to first * forward along the response body to the underlying native response. */ protected end(): void; private bindHandlers; private sendObject; private sendString; private sendBuffer; } export default OutgoingResponse;