import type { Subscription } from '../base.js'; import { type Plan } from '../plans.js'; import type { IApp } from '../toDesktop.js'; export declare const PRO_CHILD_APP_LIMIT = 2; export declare const SCALE_CHILD_APP_LIMIT = 10; export interface AppEntitlementContext { app: IApp; apps: IApp[]; childAppLimit: number; childApps: IApp[]; effectiveApp: IApp; effectivePlan: null | Plan; effectiveSubscription?: Subscription; isChildApp: boolean; leaderApp: IApp; remainingChildAppCapacity: number; } export declare function getChildAppLimit(subscription?: Subscription): number; export declare function getRequiredPlanForAdditionalChildApp(childAppCount: number): Plan; export declare function getLeaderApp(app: IApp, apps?: IApp[]): IApp; export declare function getEntitlementContext(app: IApp, apps?: IApp[]): AppEntitlementContext;