import type { IncomingMessage, ServerResponse } from 'node:http'; export declare function text(res: ServerResponse, status: number, content_type: string, body: string): void; export declare function json(res: ServerResponse, status: number, body: unknown): void; export declare function binary(res: ServerResponse, status: number, content_type: string, body: Buffer): void; export declare function is_authorized(token: string, authorization?: string): boolean; export declare class BodyTooLargeError extends Error { readonly max_bytes: number; constructor(max_bytes: number); } export declare function read_body(req: IncomingMessage, max_bytes?: number): Promise;