import { BufferReader } from '@aztec/foundation/serialize'; import type { FieldsOf } from '@aztec/foundation/types'; import { z } from 'zod'; import { LogId } from './log_id.js'; import { PublicLog } from './public_log.js'; /** * Represents an individual public log entry extended with info about the block and tx it was emitted in. */ export declare class ExtendedPublicLog { /** Globally unique id of the log. */ readonly id: LogId; /** The data contents of the log. */ readonly log: PublicLog; constructor( /** Globally unique id of the log. */ id: LogId, /** The data contents of the log. */ log: PublicLog); static random(): Promise; static get schema(): z.ZodEffects, z.ZodNumber>, import("@aztec/foundation/branded-types").BlockNumber, string | number | bigint>; blockHash: import("@aztec/foundation/schemas").ZodFor; txHash: z.ZodEffects, string, string>, Buffer, string>, import("../tx/tx_hash.js").TxHash, string>; txIndex: z.ZodPipeline, z.ZodNumber>; logIndex: z.ZodPipeline, z.ZodNumber>; }, "strip", z.ZodTypeAny, { blockNumber: number & { _branding: "BlockNumber"; }; blockHash: import("../block/block_hash.js").BlockHash; txHash: import("../tx/tx_hash.js").TxHash; txIndex: number; logIndex: number; }, { blockNumber: string | number | bigint; blockHash?: any; txHash: string; txIndex: string | number | bigint; logIndex: string | number | bigint; }>, LogId, { blockNumber: string | number | bigint; blockHash?: any; txHash: string; txIndex: string | number | bigint; logIndex: string | number | bigint; }>; log: import("@aztec/foundation/schemas").ZodFor; }, "strip", z.ZodTypeAny, { id: LogId; log: PublicLog; }, { id: { blockNumber: string | number | bigint; blockHash?: any; txHash: string; txIndex: string | number | bigint; logIndex: string | number | bigint; }; log?: any; }>, ExtendedPublicLog, { id: { blockNumber: string | number | bigint; blockHash?: any; txHash: string; txIndex: string | number | bigint; logIndex: string | number | bigint; }; log?: any; }>; static from(fields: FieldsOf): ExtendedPublicLog; /** * Serializes log to a buffer. * @returns A buffer containing the serialized log. */ toBuffer(): Buffer; /** * Serializes log to a string. * @returns A string containing the serialized log. */ toString(): string; /** * Serializes log to a human readable string. * @returns A human readable representation of the log. */ toHumanReadable(): string; /** * Checks if two ExtendedPublicLog objects are equal. * @param other - Another ExtendedPublicLog object to compare with. * @returns True if the two objects are equal, false otherwise. */ equals(other: ExtendedPublicLog): boolean; /** * Deserializes log from a buffer. * @param buffer - The buffer or buffer reader containing the log. * @returns Deserialized instance of `Log`. */ static fromBuffer(buffer: Buffer | BufferReader): ExtendedPublicLog; /** * Deserializes `ExtendedPublicLog` object from a hex string representation. * @param data - A hex string representation of the log. * @returns An `ExtendedPublicLog` object. */ static fromString(data: string): ExtendedPublicLog; } //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZXh0ZW5kZWRfcHVibGljX2xvZy5kLnRzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL2xvZ3MvZXh0ZW5kZWRfcHVibGljX2xvZy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsWUFBWSxFQUFFLE1BQU0sNkJBQTZCLENBQUM7QUFFM0QsT0FBTyxLQUFLLEVBQUUsUUFBUSxFQUFFLE1BQU0seUJBQXlCLENBQUM7QUFHeEQsT0FBTyxFQUFFLENBQUMsRUFBRSxNQUFNLEtBQUssQ0FBQztBQUV4QixPQUFPLEVBQUUsS0FBSyxFQUFFLE1BQU0sYUFBYSxDQUFDO0FBQ3BDLE9BQU8sRUFBRSxTQUFTLEVBQUUsTUFBTSxpQkFBaUIsQ0FBQztBQUU1Qzs7R0FFRztBQUNILHFCQUFhLGlCQUFpQjtJQUUxQixxQ0FBcUM7YUFDckIsRUFBRSxFQUFFLEtBQUs7SUFDekIsb0NBQW9DO2FBQ3BCLEdBQUcsRUFBRSxTQUFTO0lBSmhDO0lBQ0UscUNBQXFDO0lBQ3JCLEVBQUUsRUFBRSxLQUFLO0lBQ3pCLG9DQUFvQztJQUNwQixHQUFHLEVBQUUsU0FBUyxFQUM1QjtJQUVKLE9BQWEsTUFBTSwrQkFFbEI7SUFFRCxNQUFNLEtBQUssTUFBTTs7Ozs7Ozs7Ozs7Ozs7Ozs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