@hashport/react-client
Version:
React Context for hashport bridging operations
16 lines (15 loc) • 445 B
TypeScript
import { useTokenList } from './useTokenList';
import { AssetInfoWithBalance } from '../types/tokenList';
export declare const useTokensWithBalances: (props: Parameters<typeof useTokenList>[0]) => {
isLoading: true;
isError: false;
tokens: undefined;
} | {
isLoading: false;
isError: true;
tokens: undefined | AssetInfoWithBalance[];
} | {
isLoading: false;
isError: false;
tokens: AssetInfoWithBalance[];
};