iya-sts
    Preparing search index...
    spendBudget: (opts: any) => Promise<any> = spendBudget

    Type Declaration

      • (opts: any): Promise<any>
      • Spends against a budget, atomically, in the store every node shares.

        Parameters

        • opts: any

          scope, key, realm, period, amount, count, the two limits (null for none) and the row's expiry in milliseconds

        Returns Promise<any>

        the totals this spend made, or the refusal