import type * as Socket from "@effect/platform/Socket"; import type * as Effect from "effect/Effect"; import type * as ParseResult from "effect/ParseResult"; import type * as Scope from "effect/Scope"; import type * as Stream from "effect/Stream"; import type * as MobyDemux from "../../MobyDemux.js"; import * as Sink from "effect/Sink"; /** * Demux either a raw socket or a multiplexed socket to a single sink. * * @since 1.0.0 * @category Demux */ export declare const demuxToSingleSink: ((source: Stream.Stream, sink: Sink.Sink, options?: { encoding?: string | undefined; } | undefined) => (sockets: MobyDemux.EitherRawInput | MobyDemux.EitherMultiplexedInput) => Effect.Effect | Exclude | Exclude>) & ((sockets: MobyDemux.EitherRawInput | MobyDemux.EitherMultiplexedInput, source: Stream.Stream, sink: Sink.Sink, options?: { encoding?: string | undefined; } | undefined) => Effect.Effect | Exclude | Exclude>);