import type { Api, Billing } from "@cargo-ai/api"; /** * The current subscription. Undefined when the lookup fails or times out. * Shared by the credit balance and the unpaid-plan pin so a palette open * does not hit the billing endpoint twice. */ export declare function fetchSubscription(api: Api): Promise; /** * Credits remaining, matching what the app shows: the subscription's unused * allowance plus the top-up balance. Both halves matter — a workspace that has * spent its whole monthly allowance and is running on top-ups reads as zero * without the second term, which is exactly when the number is worth showing. */ export declare function creditsLeftOf(subscription: { subscriptionAvailableCreditsCount: number; subscriptionCreditsUsedCount: number; additionalAvailableCreditsCount: number; }): number; /** * Credits remaining. Undefined when the lookup fails or times out. */ export declare function fetchCreditsLeft(api: Api): Promise; /** * True when the workspace is on Orb with a $0 plan — the free tier the app * also treats as unpaid (`fixedPrice === 0 && provider === "orb"`). Stripe * workspaces always report `fixedPrice: 0` in the API today, so the provider * check is what keeps enterprise off this path. */ export declare function isUnpaidPlan(subscription: { provider: Billing.EnrichedSubscription["provider"]; fixedPrice: number; }): boolean; /** The current workspace's display name. Undefined when the lookup fails. */ export declare function fetchWorkspaceName(api: Api): Promise; /** * ` · Acme · 9,657.48 credits` — the half of a palette heading that says which * workspace this session points at and what it has left to spend. Empty when * the name could not be read, so the heading falls back to the version alone * rather than to a dangling separator. */ export declare function formatWorkspaceSuffix(name: string | undefined, creditsLeft: number | undefined): string; //# sourceMappingURL=statusData.d.ts.map