import { EthExecutionAPI, Bytes, Transaction, KeyStore } from 'web3-types'; import { Web3Context } from 'web3-core'; import { Wallet } from 'web3-eth-accounts'; /** * Initialize the accounts module for the given context. * * To avoid multiple package dependencies for `web3-eth-accounts` we are creating * this function in `web3` package. In future the actual `web3-eth-accounts` package * should be converted to context aware. */ export declare const initAccountsForContext: (context: Web3Context) => { signTransaction: (transaction: Transaction, privateKey: Bytes) => Promise; create: () => { signTransaction: (transaction: Transaction) => Promise; address: string; privateKey: string; sign: (data: string | Record) => { readonly messageHash: string; readonly r: string; readonly s: string; readonly v: string; readonly message?: string | undefined; readonly signature: string; }; encrypt: (password: string, options?: Record | undefined) => Promise; }; privateKeyToAccount: (privateKey: Uint8Array | string) => { signTransaction: (transaction: Transaction) => Promise; address: string; privateKey: string; sign: (data: string | Record) => { readonly messageHash: string; readonly r: string; readonly s: string; readonly v: string; readonly message?: string | undefined; readonly signature: string; }; encrypt: (password: string, options?: Record | undefined) => Promise; }; decrypt: (keystore: KeyStore | string, password: string, options?: Record) => Promise<{ signTransaction: (transaction: Transaction) => Promise; address: string; privateKey: string; sign: (data: string | Record) => { readonly messageHash: string; readonly r: string; readonly s: string; readonly v: string; readonly message?: string | undefined; readonly signature: string; }; encrypt: (password: string, options?: Record | undefined) => Promise; }>; recoverTransaction: (rawTransaction: string) => string; hashMessage: (message: string) => string; sign: (data: string, privateKey: Bytes) => import("web3-eth-accounts").SignResult; recover: (data: string | import("web3-eth-accounts").SignatureObject, signatureOrV?: string | undefined, prefixedOrR?: string | boolean | undefined, s?: string | undefined, prefixed?: boolean | undefined) => string; encrypt: (privateKey: Bytes, password: string | Uint8Array, options?: import("web3-types").CipherOptions | undefined) => Promise; wallet: Wallet<{ signTransaction: (transaction: Transaction) => Promise; address: string; privateKey: string; sign: (data: string | Record) => { readonly messageHash: string; readonly r: string; readonly s: string; readonly v: string; readonly message?: string | undefined; readonly signature: string; }; encrypt: (password: string, options?: Record | undefined) => Promise; }>; privateKeyToAddress: (privateKey: Bytes) => string; parseAndValidatePrivateKey: (data: Bytes, ignoreLength?: boolean | undefined) => Uint8Array; privateKeyToPublicKey: (privateKey: Bytes, isCompressed: boolean) => string; };