import { Billing } from "../../domains/index.js"; import type { Fetcher } from "../../fetcher/index.js"; interface BillingApiDependencies { fetcher: Fetcher; } export interface BillingApi { usage: { getMetrics: (payload: Billing.Api.UsageMetricsPayload) => Promise; }; subscription: { get: () => Promise; getInvoices: () => Promise; getCreditCard: () => Promise; createSetupIntent: () => Promise; getStripePublishableKey: () => Promise; updatePaymentMethod: (payload: Billing.Api.UpdatePaymentMethodPayload) => Promise; createPortalSession: () => Promise; createPaymentMethodPortalSession: () => Promise; updatePlan: (payload: Billing.Api.UpdatePlanPayload) => Promise; updateTopup: (payload: Billing.Api.UpdateTopupPayload) => Promise; updateCreditsOverageBehaviors: (payload: Billing.Api.UpdateCreditsOverageBehaviorsPayload) => Promise; }; } export declare const buildBillingApi: ({ fetcher, }: BillingApiDependencies) => BillingApi; export {}; //# sourceMappingURL=index.d.ts.map