import type * as Binding from "./Binding.ts"; import { RateLimit, type RateLimitClient, type RateLimitPeriod } from "./RateLimit.ts"; /** The binding value produced by calling {@link RateLimit} (declared on `env` or `yield*`-ed). */ export type RateLimitBinding = Binding.Binding & { readonly namespaceId: string; readonly simple: { limit: number; period: RateLimitPeriod; }; }; /** * The layer that provides the Effect-native interface for the Cloudflare * Workers Rate Limit binding. * * Provide it on the Worker effect (`Effect.provide(Cloudflare.Workers.RateLimitBinding)`) * so that yielding a {@link RateLimit} binding attaches the native `ratelimit` * binding to the surrounding Worker at deploy time and, at runtime, resolves to * the Effect-native {@link RateLimitClient}. */ export declare const RateLimitBinding: import("effect/Layer").Layer; //# sourceMappingURL=RateLimitBinding.d.ts.map