import { Stream } from "@effect/core/stream/Stream/definition";
import { LazyArg } from "@tsplus/stdlib/data/Function";
import { Duration } from "@tsplus/stdlib/data/Duration";
import { Chunk } from "@tsplus/stdlib/collections/Chunk/definition";
/**
 * Partitions the stream with the specified chunkSize or until the specified
 * duration has passed, whichever is satisfied first.
 * @tsplus fluent ets/Stream groupedWithin
 * @tsplus location "@effect/core/stream/Stream/operations/groupedWithin"
 */
export declare function groupedWithin_<R, E, A>(self: Stream<R, E, A>, chunkSize: number, within: LazyArg<Duration>, __tsplusTrace?: string): Stream<R, E, Chunk<A>>;
/**
 * Partitions the stream with the specified chunkSize or until the specified
 * duration has passed, whichever is satisfied first.
 * @tsplus static ets/Stream/Aspects groupedWithin
 * @tsplus pipeable ets/Stream groupedWithin
 * @tsplus location "@effect/core/stream/Stream/operations/groupedWithin"
 */
export declare const groupedWithin: (chunkSize: number, within: LazyArg<Duration>, __tsplusTrace?: string) => <R, E, A>(self: import("../definition").Stream<R, E, A>) => import("../definition").Stream<R, E, import("@tsplus/stdlib/collections/Chunk").Chunk<A>>;
//# sourceMappingURL=groupedWithin.d.ts.map