import * as abitype from 'abitype'; import * as viem from 'viem'; import * as viem_accounts from 'viem/accounts'; import { GetKeyResponse, GetTlsKeyResponse } from './index.js'; import './get-compose-hash.js'; import './verify-env-encrypt-public-key.js'; /** * @deprecated use toViemAccountSecure instead. This method has security concerns. * Current implementation uses raw key material without proper hashing. */ declare function toViemAccount(keyResponse: GetKeyResponse | GetTlsKeyResponse): { address: viem_accounts.Address; nonceManager?: viem_accounts.NonceManager | undefined; sign: (parameters: { hash: viem.Hash; }) => Promise; signAuthorization: (parameters: viem.AuthorizationRequest) => Promise; signMessage: ({ message }: { message: viem.SignableMessage; }) => Promise; signTransaction: = viem.SerializeTransactionFn, transaction extends Parameters[0] = Parameters[0]>(transaction: transaction, options?: { serializer?: serializer | undefined; } | undefined) => Promise; signTypedData: , primaryType extends keyof typedData | "EIP712Domain" = keyof typedData>(parameters: viem.TypedDataDefinition) => Promise; publicKey: viem.Hex; source: "privateKey"; type: "local"; }; /** * Creates a Viem account from DeriveKeyResponse using secure key derivation. * This method applies SHA256 hashing to the complete key material for enhanced security. */ declare function toViemAccountSecure(keyResponse: GetKeyResponse | GetTlsKeyResponse): { address: viem_accounts.Address; nonceManager?: viem_accounts.NonceManager | undefined; sign: (parameters: { hash: viem.Hash; }) => Promise; signAuthorization: (parameters: viem.AuthorizationRequest) => Promise; signMessage: ({ message }: { message: viem.SignableMessage; }) => Promise; signTransaction: = viem.SerializeTransactionFn, transaction extends Parameters[0] = Parameters[0]>(transaction: transaction, options?: { serializer?: serializer | undefined; } | undefined) => Promise; signTypedData: , primaryType extends keyof typedData | "EIP712Domain" = keyof typedData>(parameters: viem.TypedDataDefinition) => Promise; publicKey: viem.Hex; source: "privateKey"; type: "local"; }; export { toViemAccount, toViemAccountSecure };