/// <reference types="node" resolution-mode="require"/>
/// <reference types="node" resolution-mode="require"/>
import { Fr } from '@aztec/circuits.js';
import { BufferReader } from '@aztec/foundation/serialize';
/**
 * A class representing hash of Aztec transaction.
 */
export declare class TxHash {
    /** A field representing the tx hash (tx hash is an output of poseidon hash hence it's a field). */
    readonly hash: Fr;
    constructor(
    /** A field representing the tx hash (tx hash is an output of poseidon hash hence it's a field). */
    hash: Fr);
    static random(): TxHash;
    static fromBuffer(buffer: Uint8Array | BufferReader): TxHash;
    static fromString(str: string): TxHash;
    static fromBigInt(value: bigint): TxHash;
    toBuffer(): Buffer;
    toString(): `0x${string}`;
    toBigInt(): bigint;
    toJSON(): `0x${string}`;
    equals(other: TxHash): boolean;
    static get schema(): import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodString, string, string>, string, string>, Buffer, string>, TxHash, string>;
    static zero(): TxHash;
    static get SIZE(): number;
}
//# sourceMappingURL=tx_hash.d.ts.map