import { RefetchOptions } from '@tanstack/react-query';
import { Token } from '../../../types/index';

export declare const useFetchTokens: ({ addresses }: {
    addresses?: string[];
}) => {
    error: string | undefined;
    isError: boolean;
    isLoading: boolean;
    tokenBalances: Token[];
    walletBalances: {
        wallet: string | undefined;
        tokenBalances: Record<number, Token[]>;
    }[];
    refetch: (options?: RefetchOptions) => Promise<import('@tanstack/react-query').QueryObserverResult<{
        result: Record<number, Token[]>;
        address: string;
    }, Error>[]>;
    data: TokenRecord | undefined;
};
type TokenRecord = Record<number, Token[]>;
export declare function mergeTokenItems(items: TokenRecord[]): TokenRecord;
export declare function fetchTokens({ address, baseUrl, apiKey, }: {
    address: string;
    baseUrl: string | undefined;
    apiKey: string | undefined;
}): Promise<{
    result: Record<number, Token[]>;
    address: string;
}>;
export {};
