import { APIResource } from "../../../resource.js"; import * as Core from "../../../core.js"; export declare class SpendingLimit extends APIResource { /** * Configure a spending limit with amount, strategy, and duration. * * @example * ```ts * const spendingLimit = * await client.aiGateway.billing.spendingLimit.create({ * account_id: 'account_id', * amount: 10000, * duration: 'monthly', * strategy: 'fixed', * }); * ``` */ create(params: SpendingLimitCreateParams, options?: Core.RequestOptions): Core.APIPromise; /** * Remove the spending limit for the account. * * @example * ```ts * const spendingLimit = * await client.aiGateway.billing.spendingLimit.delete({ * account_id: 'account_id', * }); * ``` */ delete(params: SpendingLimitDeleteParams, options?: Core.RequestOptions): Core.APIPromise; /** * Retrieve the current spending limit configuration for the account. * * @example * ```ts * const spendingLimit = * await client.aiGateway.billing.spendingLimit.get({ * account_id: 'account_id', * }); * ``` */ get(params: SpendingLimitGetParams, options?: Core.RequestOptions): Core.APIPromise; } export type SpendingLimitCreateResponse = unknown; export type SpendingLimitDeleteResponse = unknown; export interface SpendingLimitGetResponse { config: SpendingLimitGetResponse.Config; enabled: boolean; } export declare namespace SpendingLimitGetResponse { interface Config { amount: number | null; duration: string | null; strategy: string | null; } } export interface SpendingLimitCreateParams { /** * Path param: Cloudflare account ID. */ account_id: string; /** * Body param: Spending limit amount in cents (min 100). */ amount: number; /** * Body param: Spending limit duration. */ duration: 'daily' | 'weekly' | 'monthly'; /** * Body param: Spending limit strategy. */ strategy: 'fixed' | 'sliding'; } export interface SpendingLimitDeleteParams { /** * Cloudflare account ID. */ account_id: string; } export interface SpendingLimitGetParams { /** * Cloudflare account ID. */ account_id: string; } export declare namespace SpendingLimit { export { type SpendingLimitCreateResponse as SpendingLimitCreateResponse, type SpendingLimitDeleteResponse as SpendingLimitDeleteResponse, type SpendingLimitGetResponse as SpendingLimitGetResponse, type SpendingLimitCreateParams as SpendingLimitCreateParams, type SpendingLimitDeleteParams as SpendingLimitDeleteParams, type SpendingLimitGetParams as SpendingLimitGetParams, }; } //# sourceMappingURL=spending-limit.d.ts.map