import { type HttpRequest, HttpResponse, type HttpResponseLike } from "../http/index.js"; import type { HttpLayer } from "../layer/index.js"; import type { HttpService } from "../service/index.js"; /** * A {@link Layer} that produces {@link MapToHttpResponse} services. */ export declare class MapToHttpResponseLayer implements HttpLayer { layer(inner: HttpService): HttpService; } /** * A service that wraps another service and maps any {@link HttpResponseLike} * responses into {@link HttpResponse}s. */ export declare class MapToHttpResponse implements HttpService { private readonly inner; constructor(inner: HttpService); invoke(request: HttpRequest): Promise; }