/** * @since 0.3.0 */ import type { HttpRequest, HttpResponse } from "@smithy/protocol-http"; import type { HttpHandlerOptions, RequestHandler as ClientRequestHandler, RequestHandlerOutput } from "@smithy/types"; import type * as Cause from "effect/Cause"; import * as Context from "effect/Context"; import * as Effect from "effect/Effect"; import * as Scope from "effect/Scope"; import type { RuntimeOptions } from "./internal/httpHandler.js"; declare const TypeId: unique symbol; type RequestHandlerConstructorProps = { readonly handle: (request: HttpRequest, handlerOptions?: HttpHandlerOptions) => Effect.Effect, Cause.TimeoutError, Scope.Scope>; }; /** * @since 0.3.0 * @category model */ export interface RequestHandler extends RequestHandlerConstructorProps { readonly [TypeId]: typeof TypeId; } /** * @since 0.3.0 * @category tag */ export declare const RequestHandler: Context.Service; /** * @since 0.3.0 * @category constructors */ export declare const make: (options: RequestHandlerConstructorProps) => RequestHandler; /** * @since 0.3.0 * @category adapters */ export declare const toClientRequestHandler: (requestHandler: RequestHandler, config: RuntimeOptions) => ClientRequestHandler; export {}; //# sourceMappingURL=HttpHandler.d.ts.map