import { Stream } from "@effect/core/stream/Stream/definition";
import { LazyArg } from "@tsplus/stdlib/data/Function";
import { Sink } from "@effect/core/stream/Sink/definition/base";
import { Schedule } from "@effect/core/io/Schedule/definition";
import { Maybe } from "@tsplus/stdlib/data/Maybe/definition";
/**
 * Like `aggregateWithinEither`, but only returns the `Right` results.
 * @param sink Used for the aggregation
 * @param schedule Used for signalling for when to stop the aggregation
 * @tsplus fluent ets/Stream aggregateWithin
 * @tsplus location "@effect/core/stream/Stream/operations/aggregateWithin"
 */
export declare function aggregateWithin_<R, E, A, R2, E2, A2, S, R3, B, C>(self: Stream<R, E, A>, sink: LazyArg<Sink<R2, E2, A | A2, A2, B>>, schedule: LazyArg<Schedule<S, R3, Maybe<B>, C>>, __tsplusTrace?: string): Stream<R | R2 | R3, E | E2, B>;
/**
 * Like `aggregateWithinEither`, but only returns the `Right` results.
 * @param sink Used for the aggregation
 * @param schedule Used for signalling for when to stop the aggregation
 * @tsplus static ets/Stream/Aspects aggregateWithin
 * @tsplus pipeable ets/Stream aggregateWithin
 * @tsplus location "@effect/core/stream/Stream/operations/aggregateWithin"
 */
export declare const aggregateWithin: <A, R2, E2, A2, S, R3, B, C>(sink: import("@tsplus/stdlib/data/Function").LazyArg<import("../../Sink").Sink<R2, E2, A | A2, A2, B>>, schedule: import("@tsplus/stdlib/data/Function").LazyArg<import("../../../io/Schedule").Schedule<S, R3, import("@tsplus/stdlib/data/Maybe").Maybe<B>, C>>, __tsplusTrace?: string) => <R, E>(self: import("../definition").Stream<R, E, A>) => import("../definition").Stream<R | R2 | R3, E | E2, B>;
//# sourceMappingURL=aggregateWithin.d.ts.map