import type { Fr } from '@aztec/foundation/curves/bn254'; import { BufferReader, FieldReader } from '@aztec/foundation/serialize'; import { inspect } from 'util'; import { z } from 'zod'; import { AppendOnlyTreeSnapshot } from '../trees/append_only_tree_snapshot.js'; /** * Stores snapshots of all the trees but archive. */ export declare class TreeSnapshots { l1ToL2MessageTree: AppendOnlyTreeSnapshot; noteHashTree: AppendOnlyTreeSnapshot; nullifierTree: AppendOnlyTreeSnapshot; publicDataTree: AppendOnlyTreeSnapshot; constructor(l1ToL2MessageTree: AppendOnlyTreeSnapshot, noteHashTree: AppendOnlyTreeSnapshot, nullifierTree: AppendOnlyTreeSnapshot, publicDataTree: AppendOnlyTreeSnapshot); static get schema(): z.ZodEffects; nextAvailableLeafIndex: z.ZodPipeline, z.ZodNumber>; }, "strip", z.ZodTypeAny, { root: Fr; nextAvailableLeafIndex: number; }, { root: string; nextAvailableLeafIndex: string | number | bigint; }>, AppendOnlyTreeSnapshot, { root: string; nextAvailableLeafIndex: string | number | bigint; }>; noteHashTree: z.ZodEffects; nextAvailableLeafIndex: z.ZodPipeline, z.ZodNumber>; }, "strip", z.ZodTypeAny, { root: Fr; nextAvailableLeafIndex: number; }, { root: string; nextAvailableLeafIndex: string | number | bigint; }>, AppendOnlyTreeSnapshot, { root: string; nextAvailableLeafIndex: string | number | bigint; }>; nullifierTree: z.ZodEffects; nextAvailableLeafIndex: z.ZodPipeline, z.ZodNumber>; }, "strip", z.ZodTypeAny, { root: Fr; nextAvailableLeafIndex: number; }, { root: string; nextAvailableLeafIndex: string | number | bigint; }>, AppendOnlyTreeSnapshot, { root: string; nextAvailableLeafIndex: string | number | bigint; }>; publicDataTree: z.ZodEffects; nextAvailableLeafIndex: z.ZodPipeline, z.ZodNumber>; }, "strip", z.ZodTypeAny, { root: Fr; nextAvailableLeafIndex: number; }, { root: string; nextAvailableLeafIndex: string | number | bigint; }>, AppendOnlyTreeSnapshot, { root: string; nextAvailableLeafIndex: string | number | bigint; }>; }, "strip", z.ZodTypeAny, { l1ToL2MessageTree: AppendOnlyTreeSnapshot; noteHashTree: AppendOnlyTreeSnapshot; nullifierTree: AppendOnlyTreeSnapshot; publicDataTree: AppendOnlyTreeSnapshot; }, { l1ToL2MessageTree: { root: string; nextAvailableLeafIndex: string | number | bigint; }; noteHashTree: { root: string; nextAvailableLeafIndex: string | number | bigint; }; nullifierTree: { root: string; nextAvailableLeafIndex: string | number | bigint; }; publicDataTree: { root: string; nextAvailableLeafIndex: string | number | bigint; }; }>, TreeSnapshots, { l1ToL2MessageTree: { root: string; nextAvailableLeafIndex: string | number | bigint; }; noteHashTree: { root: string; nextAvailableLeafIndex: string | number | bigint; }; nullifierTree: { root: string; nextAvailableLeafIndex: string | number | bigint; }; publicDataTree: { root: string; nextAvailableLeafIndex: string | number | bigint; }; }>; getSize(): number; static fromBuffer(buffer: Buffer | BufferReader): TreeSnapshots; toBuffer(): Buffer; static fromFields(fields: Fr[] | FieldReader): TreeSnapshots; toFields(): Fr[]; static empty(): TreeSnapshots; /** * Creates a TreeSnapshots instance from a plain object without Zod validation. * This method is optimized for performance and skips validation, making it suitable * for deserializing trusted data (e.g., from C++ via MessagePack). * @param obj - Plain object containing TreeSnapshots fields * @returns A TreeSnapshots instance */ static fromPlainObject(obj: any): TreeSnapshots; isEmpty(): boolean; [inspect.custom](): string; } //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHJlZV9zbmFwc2hvdHMuZC50cyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy90eC90cmVlX3NuYXBzaG90cy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFDQSxPQUFPLEtBQUssRUFBRSxFQUFFLEVBQUUsTUFBTSxnQ0FBZ0MsQ0FBQztBQUN6RCxPQUFPLEVBQUUsWUFBWSxFQUFFLFdBQVcsRUFBcUIsTUFBTSw2QkFBNkIsQ0FBQztBQUUzRixPQUFPLEVBQUUsT0FBTyxFQUFFLE1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