/** * Lightweight helpers for ethers providers / signers. * * Note: amount/percentage formatting helpers live in `./conversions.ts`. */ import { type HDNodeWallet } from "ethers"; /** EVM address as a 0x-prefixed hex string. */ export type Address = `0x${string}`; /** * Create an ethers `Wallet` from a BIP-39 mnemonic. * * @param mnemonic The 12/24-word mnemonic phrase. * @returns A connected-less `HDNodeWallet`. Use `.connect(provider)` * to attach a provider before sending transactions. * * @example * const wallet = getWalletFromMnemonic(MNEMONIC).connect(provider); */ export declare function getWalletFromMnemonic(mnemonic: string): HDNodeWallet; /** * Type guard for EVM addresses. * * Validates the format only (`0x` prefix + 40 hex chars). Does **not** * validate the EIP-55 checksum. * * @example * if (isValidAddress(input)) { /* input is now typed as `Address` *\/ } */ export declare function isValidAddress(address: string): address is Address;