export class PlanClient extends Base { /** * Required delegated capabilities: * - `plan/get` * * @param {import('@storacha/access').AccountDID} account * @param {object} [options] * @param {string} [options.nonce] */ get(account: import("@storacha/access").AccountDID, options?: { nonce?: string | undefined; }): Promise; /** * Required delegated capabilities: * - `plan/set` * * @param {API.AccountDID} account * @param {API.DID} product * @param {object} [options] * @param {string} [options.nonce] */ set(account: API.AccountDID, product: API.DID, options?: { nonce?: string | undefined; }): Promise; /** * * @param {API.AccountDID} account * @param {string} returnURL * @param {object} [options] * @param {string} [options.nonce] */ createAdminSession(account: API.AccountDID, returnURL: string, options?: { nonce?: string | undefined; }): Promise; /** * * @param {API.AccountDID} account * @param {object} options * @param {API.DID} options.planID * @param {string} [options.successURL] * @param {string} [options.cancelURL] * @param {boolean} [options.redirectAfterCompletion] * @param {boolean} [options.freeTrial] * @param {string} [options.nonce] */ createCheckoutSession(account: API.AccountDID, options: { planID: API.DID; successURL?: string | undefined; cancelURL?: string | undefined; redirectAfterCompletion?: boolean | undefined; freeTrial?: boolean | undefined; nonce?: string | undefined; }): Promise; } export function get({ agent }: { agent: API.Agent; }, { account, nonce, proofs }: { account: API.AccountDID; nonce?: string | undefined; proofs?: API.Delegation[] | undefined; }): Promise>; export function set({ agent }: { agent: API.Agent; }, { account, product, nonce, proofs }: { product: API.DID; account: API.AccountDID; nonce?: string | undefined; proofs?: API.Delegation[] | undefined; }): Promise>; export function createAdminSession({ agent }: { agent: API.Agent; }, { account, returnURL, nonce, proofs }: { account: API.AccountDID; returnURL: string; nonce?: string | undefined; proofs?: API.Delegation[] | undefined; }): Promise>; export function createCheckoutSession({ agent }: { agent: API.Agent; }, { account, planID, successURL, cancelURL, redirectAfterCompletion, freeTrial, nonce, proofs, }: { account: API.AccountDID; planID: API.DID; successURL?: string | undefined; cancelURL?: string | undefined; freeTrial?: boolean | undefined; redirectAfterCompletion?: boolean | undefined; nonce?: string | undefined; proofs?: API.Delegation[] | undefined; }): Promise>; import { Base } from '../base.js'; import * as API from '../types.js'; //# sourceMappingURL=plan.d.ts.map