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";
/**
 * Throttles the chunks of this stream according to the given bandwidth
 * parameters using the token bucket algorithm. Allows for burst in the
 * processing of elements by allowing the token bucket to accumulate tokens up
 * to a `units + burst` threshold. Chunks that do not meet the bandwidth
 * constraints are dropped. The weight of each chunk is determined by the
 * `costFn` function.
 * @tsplus fluent ets/Stream throttleEnforce
 * @tsplus location "@effect/core/stream/Stream/operations/throttleEnforce"
 */
export declare function throttleEnforce_<R, E, A>(self: Stream<R, E, A>, units: number, duration: LazyArg<Duration>, costFn: (input: Chunk<A>) => number, burst?: number, __tsplusTrace?: string): Stream<R, E, A>;
/**
 * Throttles the chunks of this stream according to the given bandwidth
 * parameters using the token bucket algorithm. Allows for burst in the
 * processing of elements by allowing the token bucket to accumulate tokens up
 * to a `units + burst` threshold. Chunks that do not meet the bandwidth
 * constraints are dropped. The weight of each chunk is determined by the
 * `costFn` function.
 * @tsplus static ets/Stream/Aspects throttleEnforce
 * @tsplus pipeable ets/Stream throttleEnforce
 * @tsplus location "@effect/core/stream/Stream/operations/throttleEnforce"
 */
export declare const throttleEnforce: <A>(units: number, duration: LazyArg<Duration>, costFn: (input: import("@tsplus/stdlib/collections/Chunk").Chunk<A>) => number, burst?: number, __tsplusTrace?: string) => <R, E>(self: import("../definition").Stream<R, E, A>) => import("../definition").Stream<R, E, A>;
//# sourceMappingURL=throttleEnforce.d.ts.map