/** * @implements {Types.PlansStorage} */ export class PlansStorage implements Types.PlansStorage { /** * @type {Record} */ plans: Record; /** * * @param {Types.AccountDID} account * @param {string} billingID * @param {Types.DID} product */ initialize(account: Types.AccountDID, billingID: string, product: Types.DID): Promise<{ error: CustomerExists; ok?: undefined; } | { ok: {}; error?: undefined; }>; /** * * @param {Types.AccountDID} account * @returns */ get(account: Types.AccountDID): Promise<{ ok: { product: Types.DID; billingID: string; updatedAt: string; limit: string; }; error?: undefined; } | { error: { name: "PlanNotFound"; message: string; }; ok?: undefined; }>; /** * * @param {Types.AccountDID} account * @param {Types.DID} product * @returns */ set(account: Types.AccountDID, product: Types.DID): Promise<{ error: CustomerNotFound; ok?: undefined; } | { ok: {}; error?: undefined; }>; /** * @param {Types.AccountDID} account * @returns {Promise>} */ createAdminSession(account: Types.AccountDID): Promise>; /** * @param {Types.AccountDID} account * @returns {Promise>} */ createCheckoutSession(account: Types.AccountDID): Promise>; } import * as Types from '../../types.js'; import { CustomerExists } from '../../plan.js'; import { CustomerNotFound } from '../../plan.js'; //# sourceMappingURL=plans-storage.d.ts.map