import type { IrysConfig, Network, Token } from '@irys/upload-core'; import BaseNodeIrys from './base'; export interface NodeToken extends Token { getPublicKey(): string | Buffer; } export type NodeIrysConfig = { url: Network | string; key: Key; config?: IrysConfig; }; export type GetToken = ({ irys, wallet, url, providerUrl, contractAddress, opts, }: { irys: BaseNodeIrys; wallet: any; url: string; providerUrl?: string; contractAddress?: string; opts?: any; }) => Promise;