import * as Digest from "effect/crypto/Digest"; import * as SecureRandom from "effect/crypto/SecureRandom"; import type { Input as DurationInput } from "effect/Duration"; import * as Effect from "effect/Effect"; import type { FileSystem } from "effect/FileSystem"; import type { HttpServer } from "effect/http/HttpServer"; import type { ServeError } from "effect/http/HttpServerError"; import * as Layer from "effect/Layer"; import type { Path } from "effect/Path"; import type { ChildProcessSpawner } from "effect/process/ChildProcessSpawner"; import { type Teardown } from "effect/Runtime"; import type { WebSocketConstructor } from "effect/socket/Socket"; import type { Stdio } from "effect/Stdio"; import type { Terminal } from "effect/Terminal"; /** * 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 | Digest.Digest | SecureRandom.SecureRandom | 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, options?: { readonly gracefulShutdownTimeout?: DurationInput | undefined; }) => Layer.Layer; //# sourceMappingURL=PlatformServices.d.ts.map