import * as v from "valibot"; //#region src/shared/rate-limit.schemas.d.ts declare const RATE_LIMIT_FAILURE_REASON_VALUES: readonly ["unspecified", "quota_exceeded", "authority_unavailable"]; declare const RATE_LIMIT_POLICY_CLASS_VALUES: readonly ["unspecified", "auth_public", "trading_place", "trading_cancel", "trading_read", "account_admin", "public_read", "account_security", "deposit_create", "internal_transfer", "withdraw_submit", "withdraw_validate", "guard_sign", "social_provider"]; declare const RATE_LIMIT_SCOPE_VALUES: readonly ["unspecified", "client_ip", "api_key", "account", "subaccount", "connection", "service", "region", "symbol", "auth_subject"]; declare const RATE_LIMIT_REFILL_MODEL_VALUES: readonly ["unspecified", "continuous", "fixed_window", "rolling_window"]; /** Machine-readable reason for a rate-limit rejection. */ type RateLimitFailureReason = (typeof RATE_LIMIT_FAILURE_REASON_VALUES)[number]; /** Quota policy family used for a rate-limit decision. */ type RateLimitPolicyClass = (typeof RATE_LIMIT_POLICY_CLASS_VALUES)[number]; /** Caller dimension that owns the exhausted capacity. */ type RateLimitScope = (typeof RATE_LIMIT_SCOPE_VALUES)[number]; /** Refill behavior for the exhausted quota. */ type RateLimitRefillModel = (typeof RATE_LIMIT_REFILL_MODEL_VALUES)[number]; /** Parses protobuf quota state into the stable SDK rate-limit detail shape. */ declare const RateLimitDetailSchema: v.ObjectSchema<{ readonly reason: v.SchemaWithPipe, v.TransformAction]>; readonly limit: v.SchemaWithPipe, undefined>, v.TransformAction]>; readonly remaining: v.SchemaWithPipe, undefined>, v.TransformAction]>; readonly retryAfterMs: v.SchemaWithPipe, undefined>, v.TransformAction]>; readonly policyVersion: v.SchemaWithPipe, undefined>, v.TransformAction]>; readonly operationId: v.StringSchema; readonly policyClass: v.SchemaWithPipe, v.TransformAction]>; readonly scope: v.SchemaWithPipe, v.TransformAction]>; readonly refillModel: v.SchemaWithPipe, v.TransformAction]>; }, undefined>; /** Structured quota state exposed by order rejections and {@link RateLimitError}. */ type RateLimitDetail = v.InferOutput; //#endregion export { RateLimitDetail, RateLimitDetailSchema, RateLimitFailureReason, RateLimitPolicyClass, RateLimitRefillModel, RateLimitScope }; //# sourceMappingURL=rate-limit.schemas.d.ts.map