import { ChainData } from "@0xsquid/squid-types";
import type { TransactionReceipt, TransactionResponse } from "ethers";
import { Address as EvmAddress } from "viem";
import { Connector } from "wagmi";
import { EvmWallet } from "../../core/types/wallet";
export declare const EvmNetworkNotSupportedErrorCode = 4902;
export declare function addEthereumChain({ chain, provider, }: {
    chain: ChainData;
    provider: any;
}): Promise<any>;
export declare const parseEvmAddress: (address: string | undefined) => EvmAddress | undefined;
/**
 * Formats a Wagmi connector into a Squid Wallet
 */
export declare function formatEvmWallet(connector: Connector): EvmWallet;
export declare function filterWagmiConnector(connector: Connector): boolean;
/**
 * Waits for a transaction receipt, handling retries if indexing is in progress
 */
export declare function waitForReceiptWithRetry(txResponse: TransactionResponse, retries?: number, delayMs?: number): Promise<TransactionReceipt | null>;
