import type { AbstractAddress } from '@fuel-ts/interfaces'; import type { Provider } from '@fuel-ts/providers'; import type { BytesLike } from 'ethers'; import { WalletLocked, WalletUnlocked } from './wallets'; /** * `Wallet` provides methods to create locked and unlocked wallet instances. */ export declare class Wallet { /** * Creates a locked wallet instance from an address and a provider. * * @param address - The address of the wallet. * @param provider - A Provider instance (optional). * @returns A locked wallet instance. */ static fromAddress(address: string | AbstractAddress, provider?: Provider): WalletLocked; /** * Creates an unlocked wallet instance from a private key and a provider. * * @param privateKey - The private key of the wallet. * @param provider - A Provider instance (optional). * @returns An unlocked wallet instance. */ static fromPrivateKey(privateKey: BytesLike, provider?: Provider): WalletUnlocked; /** * Generate a new Wallet Unlocked with a random key pair. * * @param generateOptions - Options to customize the generation process (optional). * @returns An unlocked wallet instance. */ static generate: typeof WalletUnlocked.generate; /** * Create a Wallet Unlocked from a seed. * * @param seed - The seed phrase. * @param provider - A Provider instance (optional). * @param path - The derivation path (optional). * @returns An unlocked wallet instance. */ static fromSeed: typeof WalletUnlocked.fromSeed; /** * Create a Wallet Unlocked from a mnemonic phrase. * * @param mnemonic - The mnemonic phrase. * @param provider - A Provider instance (optional). * @param path - The derivation path (optional). * @param passphrase - The passphrase for the mnemonic (optional). * @returns An unlocked wallet instance. */ static fromMnemonic: typeof WalletUnlocked.fromMnemonic; /** * Create a Wallet Unlocked from an extended key. * * @param extendedKey - The extended key. * @param provider - A Provider instance (optional). * @returns An unlocked wallet instance. */ static fromExtendedKey: typeof WalletUnlocked.fromExtendedKey; /** * Create a Wallet Unlocked from an encrypted JSON. * * @param jsonWallet - The encrypted JSON keystore. * @param password - The password to decrypt the JSON. * @param provider - A Provider instance (optional). * @returns An unlocked wallet instance. */ static fromEncryptedJson: typeof WalletUnlocked.fromEncryptedJson; } //# sourceMappingURL=wallet.d.ts.map