/** * @since 1.0.0 */ import type * as Etag from "@effect/platform/Etag"; import type * as HttpClient from "@effect/platform/HttpClient"; import type * as Platform from "@effect/platform/HttpPlatform"; import type * as Server from "@effect/platform/HttpServer"; import type * as HttpServerError from "@effect/platform/HttpServerError"; import type * as Bun from "bun"; import type * as Config from "effect/Config"; import type * as ConfigError from "effect/ConfigError"; import type * as Effect from "effect/Effect"; import type * as Layer from "effect/Layer"; import type * as Scope from "effect/Scope"; import type * as BunContext from "./BunContext.js"; /** * @since 1.0.0 * @category Options */ export type ServeOptions>; }> = (Omit | Bun.TLSServeOptions | Bun.UnixServeOptions | Bun.UnixTLSServeOptions) & { readonly routes?: R; }; /** * @since 1.0.0 * @category constructors */ export declare const make: >; } = {}>(options: ServeOptions) => Effect.Effect; /** * @since 1.0.0 * @category layers */ export declare const layerServer: >; } = {}>(options: ServeOptions) => Layer.Layer; /** * @since 1.0.0 * @category layers */ export declare const layer: >; } = {}>(options: ServeOptions) => Layer.Layer; /** * Layer starting a server on a random port and producing an `HttpClient` * with prepended url of the running http server. * * @since 1.0.0 * @category layers */ export declare const layerTest: Layer.Layer; /** * @since 1.0.0 * @category layers */ export declare const layerConfig: >; } = {}>(options: Config.Config.Wrap>) => Layer.Layer; /** * A Layer providing the `HttpPlatform`, `FileSystem`, `Etag.Generator`, and `Path` * services. * * The `FileSystem` service is a no-op implementation, so this layer is only * useful for platforms that have no file system. * * @since 1.0.0 * @category layers */ export declare const layerContext: Layer.Layer; //# sourceMappingURL=BunHttpServer.d.ts.map