import { Stream } from "@effect/core/stream/Stream/definition";
import { LazyArg } from "@tsplus/stdlib/data/Function";
import { Duration } from "@tsplus/stdlib/data/Duration";
export declare const StreamTimeoutErrorSym: unique symbol;
export declare class StreamTimeoutError {
    readonly message?: string | undefined;
    readonly [StreamTimeoutErrorSym] = "StreamTimeoutError";
    constructor(message?: string | undefined);
}
export declare function isStreamTimeoutError(u: unknown): u is StreamTimeoutError;
/**
 * Switches the stream if it does not produce a value after the spcified
 * duration.
 * @tsplus fluent ets/Stream timeoutTo
 * @tsplus location "@effect/core/stream/Stream/operations/timeoutTo"
 */
export declare function timeoutTo_<R, E, A, R2, E2, A2>(self: Stream<R, E, A>, duration: LazyArg<Duration>, that: LazyArg<Stream<R2, E2, A2>>, __tsplusTrace?: string): Stream<R | R2, E | E2, A | A2>;
/**
 * Switches the stream if it does not produce a value after the spcified
 * duration.
 * @tsplus static ets/Stream/Aspects timeoutTo
 * @tsplus pipeable ets/Stream timeoutTo
 * @tsplus location "@effect/core/stream/Stream/operations/timeoutTo"
 */
export declare const timeoutTo: <R2, E2, A2>(duration: LazyArg<Duration>, that: import("@tsplus/stdlib/data/Function").LazyArg<import("../definition").Stream<R2, E2, A2>>, __tsplusTrace?: string) => <R, E, A>(self: import("../definition").Stream<R, E, A>) => import("../definition").Stream<R | R2, E | E2, A | A2>;
//# sourceMappingURL=timeoutTo.d.ts.map