import * as Effect from "../Effect.ts"; import type { FileSystem } from "../FileSystem.ts"; import type { Generator } from "../http/Etag.ts"; import type { HttpPlatform } from "../http/HttpPlatform.ts"; import type { Path } from "../Path.ts"; import * as Scope from "../Scope.ts"; import type * as HttpApi from "./HttpApi.ts"; import * as HttpApiClient from "./HttpApiClient.ts"; import type * as HttpApiEndpoint from "./HttpApiEndpoint.ts"; import type * as HttpApiGroup from "./HttpApiGroup.ts"; /** * Creates an in-memory client for testing selected groups of an `HttpApi`. * * **Details** * * Handlers for the selected groups are taken from the environment; unselected * groups are wired with placeholder handlers that fail if called. * * Each call runs its handler in a request scope that is a child of the * `Scope` the client was created in. A streaming response keeps that scope * open until its body ends, and a body that is never read is closed with the * owning `Scope`. * * A `Stream` payload reaches the handler unbuffered: each element is pulled * from the caller's stream as the handler reads it. If the caller's stream * fails, reading the request body fails with it. Client aborts and socket * behavior such as draining unread bodies, closing the connection, or * answering with `499` are not emulated. * * @stability unstable * @category testing * @since 4.0.0 */ export declare const groups: >, SelectedGroups extends HttpApiGroup.Constraint = Extract>(api: HttpApi.HttpApi, groupIdentifiers: Identifiers, options?: { readonly baseUrl?: string | URL | undefined; } | undefined) => Effect.Effect as HttpApiGroup.Identifier]: HttpApiClient.Client.GroupByEndpoint; } & HttpApiClient.Client.TopLevelMethods>, never, FileSystem | Generator | HttpPlatform | Path | Scope.Scope | HttpApiEndpoint.Middleware> | import("./HttpApiMiddleware.ts").MiddlewareClient>> | HttpApiGroup.ToService>; //# sourceMappingURL=HttpApiTest.d.ts.map