import { IsUnique, Metadata } from "../types.cjs"; //#region src/google-play/config.d.ts declare const addMethod: unique symbol; declare class Subscription = Lowercase, PE extends string = string, BP extends string = string, PI extends string = never, I extends Lowercase = never> { readonly productId: string; readonly config: GooglePlayConfig; readonly plans: Map; readonly defaultPlans: Set; constructor(config: GooglePlayConfig, productId: string); /** * Non-default base plans stay declared on purpose: they keep resolving for * grandfathered subscribers and serve as price-experiment arms. Never sell * a legacy base plan to new users unless that is intentional. */ basePlan: >(planId: K extends I ? never : K, plan: PE, billingPeriod: BP, metadata?: Metadata) => Subscription; default: (planIds: T & (IsUnique extends true ? unknown : never)) => GooglePlayConfig; } type Options = { package: string; audience: string; }; declare class GooglePlayConfig = Lowercase, PE extends string = string, BP extends string = string, PI extends string = never> { readonly package: string; readonly audience: string; private readonly onetimes; private readonly subscriptions; private readonly products; [addMethod]: (subscription: Subscription) => this; private readonly getId; private constructor(); static create: , PE_1 extends string = string, BP_1 extends string = string>(options: Options) => GooglePlayConfig; subscription: }`>(productId: K extends PI ? never : K) => Subscription; onetime: }`>(productId: K extends PI ? never : K, metadata?: Metadata) => GooglePlayConfig; /** Base plan ids that new subscribers should purchase for the product. */ getDefaultPlanIds: (productId: string) => string[]; getPlan: (productId: string, planId: string) => PE; getBillingPeriod: (productId: string, planId: string) => BP; getMode: (productId: string) => 'payment' | 'subscription'; getCreditAmount: (productId: string, planId?: string) => number; private readonly getCreditExpiresIn; getCreditExpiresAt: (productId: string, planId?: string) => string; } //#endregion export { GooglePlayConfig }; //# sourceMappingURL=config.d.cts.map