/**
 * Copyright (c) OpenLens Maintainers. All rights reserved.
 * Licensed under MIT License. See LICENSE in root directory for more information.
 */
/// <reference types="node" />
import type http from "http";
/**
 * Respond to a HTTP request with a body of JSON data
 * @param res The HTTP response to write data to
 * @param content The data or its JSON stringified version of it
 * @param status [200] The status code to respond with
 */
export declare function respondJson(res: http.ServerResponse, content: Object | string, status?: number): void;
/**
 * Respond to a HTTP request with a body of plain text data
 * @param res The HTTP response to write data to
 * @param content The string data to respond with
 * @param status [200] The status code to respond with
 */
export declare function respondText(res: http.ServerResponse, content: string, status?: number): void;
/**
 * Respond to a HTTP request with a body of plain text data
 * @param res The HTTP response to write data to
 * @param content The string data to respond with
 * @param contentType The HTTP Content-Type header value
 * @param status [200] The status code to respond with
 */
export declare function respond(res: http.ServerResponse, content: string, contentType: string, status?: number): void;
