interface ErrorParams {
    code: string;
    message: string;
    wallet?: string;
    version?: string;
    chainId?: string;
}
export declare class WalletError extends Error {
    readonly code: string;
    readonly wallet?: string;
    readonly version?: string;
    readonly chainId?: string;
    constructor({ code, message, wallet, version, chainId }: ErrorParams, options?: ErrorOptions);
}
/**
 * Returns true when the underlying error message indicates the user rejected
 * a wallet prompt (sign, connect, approve). Wallet providers expose this in
 * varying phrasings — match the exact ones used by supported wallets, not
 * the bare word "rejected" (some validation errors include it too).
 */
export declare function isUserRejectionMessage(message: string | undefined): boolean;
export * from './codes';
