/**
 * src/server/response.ts — HTTP response helpers for Planu HTTP API
 *
 * SPEC-610: Unified JSON response format with CORS headers.
 */
import type { IncomingMessage, ServerResponse } from 'node:http';
/** Send a success JSON response. */
export declare function sendOk(res: ServerResponse, data: unknown, status?: number): void;
/** Send a 400 Bad Request error. */
export declare function sendBadRequest(res: ServerResponse, message: string): void;
/** Send a 404 Not Found error. */
export declare function sendNotFound(res: ServerResponse, message: string): void;
/** Send a 500 Internal Server Error. */
export declare function sendInternalError(res: ServerResponse, message: string): void;
/**
 * Read and parse the JSON request body.
 * Returns parsed object or throws on malformed JSON or non-object body.
 */
export declare function readBody(req: IncomingMessage): Promise<unknown>;
//# sourceMappingURL=response.d.ts.map