import * as ox__Bytes from "ox/Bytes"; import type { Hex } from "../encoding/hex.js"; import type { SignableMessage } from "../types.js"; type To = "hex" | "bytes"; type HashMessage = (TTo extends "bytes" ? ox__Bytes.Bytes : never) | (TTo extends "hex" ? Hex : never); /** * Ethereum Signed Message hashing * @param message - The message to hash, either as a string, a Uint8Array, or an object with a `raw` property containing a Uint8Array. * @param to_ - The desired output format of the hash (optional). Defaults to 'hex'. * @example * ```ts * import { hashMessage } from "thirdweb/utils"; * const hash = hashMessage("hello world"); * ``` * @returns The Ethereum Signed Message hash of the message in the specified format. * @utils */ export declare function hashMessage(message: SignableMessage, to_?: TTo): HashMessage; export {}; //# sourceMappingURL=hashMessage.d.ts.map