///
import { ServerResponse } from 'http';
export declare class RestResponse {
#private;
private readonly response;
constructor(response: ServerResponse);
/** Sets the status text for this response. */
statusText(statusText: string): this;
/** Sets the status code for this response. */
status(status: number): this;
/** Sets the http headers for this response. */
headers(headers: Record): this;
/** Ends this request by sending the given Uint8Array buffer on the response */
arrayBuffer(buffer: Uint8Array, contentType?: string): Promise;
/** Ends this request by sending a text response */
text(content: string, contentType?: string): Promise;
/** Ends this request by sending a json response */
json(data: T): Promise;
/** Ends this request by sending a html response */
html(html: string): Promise;
}