import { Eip1193Provider } from 'ethers';
export type SwitchChainErrorCode = 'CHAIN_NOT_AVAILABLE' | 'SWITCH_FAILED';
export declare class SwitchChainError extends Error {
    code: SwitchChainErrorCode;
    targetChainId: number;
    constructor(message: string, code: SwitchChainErrorCode, targetChainId: number);
}
/**
 * Switches the connected Ethereum wallet to the specified chain.
 * If already on the target chain, returns immediately.
 *
 * @param targetChainId - The numeric chain ID to switch to (e.g., 1 for Ethereum mainnet)
 * @throws Error if no Ethereum wallet is found or if the switch fails
 */
export declare const switchEthereumChain: (targetChainId: number, provider: Eip1193Provider) => Promise<void>;
