import { IncomingMessage } from 'node:http'; import { URL } from 'node:url'; export interface ApiContext { cwd: string; configPath: string; } export interface ApiResponse { status: number; headers: Record; body: string; } export declare function handleApiRequest(req: IncomingMessage, url: URL, context: ApiContext): Promise;