import { ServerResponse } from 'node:http';
/**
 * Sends a JSON response
 */
export declare function sendJson(res: ServerResponse, data: unknown, status?: number): void;
/**
 * Sends an error response
 */
export declare function sendError(res: ServerResponse, error: string | Error, status?: number, requestId?: string): void;
/**
 * Sends a 404 Not Found response
 */
export declare function send404(res: ServerResponse): void;
/**
 * Sends a 400 Bad Request response
 */
export declare function sendBadRequest(res: ServerResponse, message: string): void;
/**
 * Sends a 503 Service Unavailable response
 */
export declare function sendServiceUnavailable(res: ServerResponse, message: string): void;
/**
 * Sets CORS headers on a response
 */
export declare function setCorsHeaders(res: ServerResponse, origin?: string): void;
/**
 * Handles OPTIONS preflight requests
 */
export declare function handleOptions(res: ServerResponse): void;
//# sourceMappingURL=response.d.ts.map