import type { Address } from 'abitype'; import type { Client } from '../../clients/createClient.js'; import type { Transport } from '../../clients/transports/createTransport.js'; import type { ErrorType } from '../../errors/utils.js'; import type { Chain } from '../../types/chain.js'; import type { ByteArray, Hex } from '../../types/misc.js'; import type { EncodeDeployDataErrorType } from '../../utils/abi/encodeDeployData.js'; import { type IsBytesEqualErrorType } from '../../utils/data/isBytesEqual.js'; import type { IsHexErrorType } from '../../utils/data/isHex.js'; import type { ToHexErrorType } from '../../utils/encoding/toHex.js'; import { type CallErrorType, type CallParameters } from './call.js'; export type VerifyHashParameters = Pick & { /** The address that signed the original message. */ address: Address; /** The hash to be verified. */ hash: Hex; /** The signature that was generated by signing the message with the address's private key. */ signature: Hex | ByteArray; }; export type VerifyHashReturnType = boolean; export type VerifyHashErrorType = CallErrorType | IsHexErrorType | ToHexErrorType | IsBytesEqualErrorType | EncodeDeployDataErrorType | ErrorType; /** * Verifies a message hash on chain using ERC-6492. * * @param client - Client to use. * @param parameters - {@link VerifyHashParameters} * @returns Whether or not the signature is valid. {@link VerifyHashReturnType} */ export declare function verifyHash(client: Client, { address, hash, signature, ...callRequest }: VerifyHashParameters): Promise; //# sourceMappingURL=verifyHash.d.ts.map