import { Keypair, PublicKey, Signer, TransactionInstruction } from '@solana/web3.js'; import { bignum as beetBignum } from '@metaplex-foundation/beet'; export type InstructionsWithAccounts> = [ TransactionInstruction[], Signer[], T, ]; // TODO(thlorenz): ideally we would not need this nor the related casts // spl-token is overly specific when limiting the type to `bigint` as from a JS // perspective `number`s work too. // At a minimum beet.bignum should be the below, but the casts can only be fixed by // adapting spl-token types. export type bignum = beetBignum | bigint;