import { TokenAllowance } from "@gala-chain/api"; import { AllowanceType } from "@gala-chain/api"; import { BigNumber } from "bignumber.js"; import { GalaChainContext } from "../types"; /** * @description * * Given one or more `TokenAllowance` entries allocated to a single action, * apply the remaining quantity of each applicable allowance to the total quantity. * * Return `true` after accounting for the full spend. Write a `TokenClaim` entry * for each allowance used. * * Throws an exception if the full quantity cannot be * met by the provided allowances. * * This function expects `applicableAllowances` to be pre-filtered by `grantedTo` / `grantedBy`. * See also `verifyAndUseAllowances` for a function that includes these identity checks. * * @param ctx * @param quantity * @param applicableAllowances * @param allowanceType * @returns Promise */ export declare function useAllowances(ctx: GalaChainContext, quantity: BigNumber, applicableAllowances: TokenAllowance[], allowanceType: AllowanceType): Promise; //# sourceMappingURL=useAllowances.d.ts.map