import { ClientSDK, RequestOptions } from "../lib/sdks.js"; import * as models from "./models/index.js"; export declare class CreditGrants extends ClientSDK { /** * Get addon credit grants * * @remarks * Use when listing credits attached to an addon (e.g. included prepaid or promo credits). */ getAddonCreditGrants(id: string, options?: RequestOptions): Promise; /** * Create credit grant * * @remarks * Use when giving a customer or plan credits (e.g. prepaid balance or promotional credits). Scope can be plan or subscription; supports start/end dates. */ createCreditGrant(request: models.CreateCreditGrantRequest, options?: RequestOptions): Promise; /** * Get credit grant * * @remarks * Use when you need to load a single credit grant (e.g. for display or to check balance). */ getCreditGrant(id: string, options?: RequestOptions): Promise; /** * Update credit grant * * @remarks * Use when changing a credit grant (e.g. amount or end date). Request body contains the fields to update. */ updateCreditGrant(id: string, body: models.UpdateCreditGrantRequest, options?: RequestOptions): Promise; /** * Delete credit grant * * @remarks * Use when removing or ending a credit grant (e.g. revoke promo or close prepaid). Plan-scoped grants are archived; subscription-scoped supports optional effective_date in body. */ deleteCreditGrant(id: string, body?: models.DeleteCreditGrantRequest | undefined, options?: RequestOptions): Promise; /** * Get plan credit grants * * @remarks * Use when listing credits attached to a plan (e.g. included prepaid or promo credits). */ getPlanCreditGrants(id: string, options?: RequestOptions): Promise; } //# sourceMappingURL=credit-grants.d.ts.map