export interface LocalResponse { status: number; ok: boolean; text: string; } export interface LocalRequestOptions { method?: string; headers?: Record; body?: string; timeoutMs: number; } /** * Perform one loopback HTTP request. Rejects on transport failure (nothing * listening, socket closed, timeout); resolves with the status for any * response the server actually sent, including 4xx and 5xx. */ export declare function localRequest(url: string, opts: LocalRequestOptions): Promise; /** localRequest + JSON.parse, with the status preserved for the caller. */ export declare function localJson(url: string, opts: LocalRequestOptions): Promise<{ status: number; ok: boolean; body: T; }>; //# sourceMappingURL=localHttp.d.ts.map