import { AutoEncoder } from '@simonbackx/simple-encoding'; import { STPackageBundle } from '../billing/STPackageBundle.js'; import { Checkoutable } from './Checkoutable.js'; import type { OrganizationPackagesStatus } from '../billing/OrganizationPackagesStatus.js'; import type { STPackage } from '../billing/STPackage.js'; /** * Checkout flow between organizations */ export declare class PackagePurchases extends AutoEncoder { /** * Buy or activate new packges. * If the package already exists, the backend will map it automatically to a renewal. */ packageBundles: STPackageBundle[]; /** * Renew existing packages explicitly */ renewPackageIds: string[]; get empty(): boolean; /** * Calculate the actual packages we'll activate */ getPackages(currentPackages: OrganizationPackagesStatus): STPackage[]; } export declare class OrganizationCheckout extends Checkoutable { purchases: PackagePurchases; } //# sourceMappingURL=OrganizationCheckout.d.ts.map