/** * @since 1.0.0 */ import * as Socket from "@effect/platform/Socket"; import * as Channel from "effect/Channel"; import type * as Chunk from "effect/Chunk"; import * as Context from "effect/Context"; import type * as Duration from "effect/Duration"; import * as Effect from "effect/Effect"; import * as Layer from "effect/Layer"; import * as Scope from "effect/Scope"; import * as Net from "node:net"; import type { Duplex } from "node:stream"; /** * @since 1.0.0 * @category tags */ export interface NetSocket { readonly _: unique symbol; } /** * @since 1.0.0 * @category tags */ export declare const NetSocket: Context.Tag; /** * @since 1.0.0 * @category constructors */ export declare const makeNet: (options: Net.NetConnectOpts & { readonly openTimeout?: Duration.DurationInput | undefined; }) => Effect.Effect; /** * @since 1.0.0 * @category constructors */ export declare const fromDuplex: (open: Effect.Effect, options?: { readonly openTimeout?: Duration.DurationInput | undefined; }) => Effect.Effect>; /** * @since 1.0.0 * @category constructors */ export declare const makeNetChannel: (options: Net.NetConnectOpts) => Channel.Channel, Chunk.Chunk, Socket.SocketError | IE, IE, void, unknown>; /** * @since 1.0.0 * @category layers */ export declare const layerNet: (options: Net.NetConnectOpts) => Layer.Layer; //# sourceMappingURL=NodeSocket.d.ts.map