import { Response, StatusCode } from "../types.js"; /** * Writes the response status and data to the response. * and closes the response. */ export declare function completeResponse(res: Response, code: StatusCode, data: string | null): Promise; /** * Write JSON flushes the given data object as JSON to the response * and closes the response. */ export declare function writeJSON(res: Response, code: StatusCode, data: unknown): Promise; export declare function writeError(res: Response, code: StatusCode, err: Error): Promise;