import * as Effect from "effect/Effect"; import type { FileSystem } from "effect/FileSystem"; import * as Layer from "effect/Layer"; import type { Path } from "effect/Path"; import { type Teardown } from "effect/Runtime"; import type { Stdio } from "effect/Stdio"; import type { Terminal } from "effect/Terminal"; import type { HttpServer } from "effect/unstable/http/HttpServer"; import type { ServeError } from "effect/unstable/http/HttpServerError"; import type { ChildProcessSpawner } from "effect/unstable/process/ChildProcessSpawner"; import type { WebSocketConstructor } from "effect/unstable/socket/Socket"; /** * Constructs a layer with different implementations for Bun and Node. */ export declare const platformLayer: (constructors: { bun: () => Promise>; node: () => Promise>; }) => Layer.Layer; export type PlatformServices = ChildProcessSpawner | FileSystem | Path | Stdio | Terminal | WebSocketConstructor; export declare const PlatformServices: Layer.Layer; export declare const runMain: (effect: Effect.Effect, options?: { readonly disableErrorReporting?: boolean | undefined; readonly teardown?: Teardown | undefined; }) => void; export declare const httpServer: (port?: number, host?: string) => Layer.Layer; //# sourceMappingURL=PlatformServices.d.ts.map