import type { BillingPlanBalance, BillingSubscriptionCatalog } from "@opengeni/sdk"; export type CatalogPlan = BillingSubscriptionCatalog["plans"][number]; export type PlanAction = "checkout" | "upgrade" | "downgrade" | "cancel"; /** The one plan that adds the seats a refused invitation needs. */ export type SeatUpgrade = { key: string; label: string; }; export declare function subscriptionAction(current: BillingPlanBalance, plans: CatalogPlan[], target: CatalogPlan): PlanAction | null; export declare function planDate(value: string | null): string | null; export declare function planSeats(plan: BillingPlanBalance): string; /** True when the plan has no seat left for another invitation. */ export declare function planSeatsFull(plan: BillingPlanBalance | null | undefined): boolean; /** The plan that gives room for `additionalSeats` more people, from the live catalog. */ export declare function seatUpgradeFor(plan: BillingPlanBalance | null | undefined, plans: readonly CatalogPlan[] | null | undefined, additionalSeats?: number): SeatUpgrade | null; /** The plan a seat-limit refusal names in its details, when the server sent one. */ export declare function seatUpgradeFromError(error: unknown): SeatUpgrade | null; export declare function isSeatLimitError(error: unknown, plan?: Pick | null): boolean;