import type { Fr } from '@aztec/foundation/curves/bn254'; import { BufferReader, FieldReader } from '@aztec/foundation/serialize'; import type { FieldsOf } from '@aztec/foundation/types'; import { z } from 'zod'; import { AppendOnlyTreeSnapshot } from '../trees/append_only_tree_snapshot.js'; /** * Stores snapshots of trees which are commonly needed by base or merge rollup circuits. */ export declare class PartialStateReference { /** Snapshot of the note hash tree. */ readonly noteHashTree: AppendOnlyTreeSnapshot; /** Snapshot of the nullifier tree. */ readonly nullifierTree: AppendOnlyTreeSnapshot; /** Snapshot of the public data tree. */ readonly publicDataTree: AppendOnlyTreeSnapshot; constructor( /** Snapshot of the note hash tree. */ noteHashTree: AppendOnlyTreeSnapshot, /** Snapshot of the nullifier tree. */ nullifierTree: AppendOnlyTreeSnapshot, /** Snapshot of the public data tree. */ 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; }>; 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, { noteHashTree: AppendOnlyTreeSnapshot; nullifierTree: AppendOnlyTreeSnapshot; publicDataTree: AppendOnlyTreeSnapshot; }, { noteHashTree: { root: string; nextAvailableLeafIndex: string | number | bigint; }; nullifierTree: { root: string; nextAvailableLeafIndex: string | number | bigint; }; publicDataTree: { root: string; nextAvailableLeafIndex: string | number | bigint; }; }>, PartialStateReference, { noteHashTree: { root: string; nextAvailableLeafIndex: string | number | bigint; }; nullifierTree: { root: string; nextAvailableLeafIndex: string | number | bigint; }; publicDataTree: { root: string; nextAvailableLeafIndex: string | number | bigint; }; }>; getSize(): number; static getFields(fields: FieldsOf): readonly [AppendOnlyTreeSnapshot, AppendOnlyTreeSnapshot, AppendOnlyTreeSnapshot]; static from(fields: FieldsOf): PartialStateReference; static fromBuffer(buffer: Buffer | BufferReader): PartialStateReference; static fromFields(fields: Fr[] | FieldReader): PartialStateReference; static random(): PartialStateReference; toAbi(): [ ReturnType, ReturnType, ReturnType ]; static empty(): PartialStateReference; toBuffer(): Buffer; toFields(): Fr[]; isEmpty(): boolean; equals(other: this): boolean; } //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicGFydGlhbF9zdGF0ZV9yZWZlcmVuY2UuZC50cyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy90eC9wYXJ0aWFsX3N0YXRlX3JlZmVyZW5jZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFDQSxPQUFPLEtBQUssRUFBRSxFQUFFLEVBQUUsTUFBTSxnQ0FBZ0MsQ0FBQztBQUN6RCxPQUFPLEVBQUUsWUFBWSxFQUFFLFdBQVcsRUFBcUIsTUFBTSw2QkFBNkIsQ0FBQztBQUMzRixPQUFPLEtBQUssRUFBRSxRQUFRLEVBQUUsTUFBTSx5QkFBeUIsQ0FBQztBQUV4RCxPQUFPLEVBQUUsQ0FBQyxFQUFFLE1BQU0sS0FBSyxDQUFDO0FBRXhCLE9BQU8sRUFBRSxzQkFBc0IsRUFBRSxNQUFNLHVDQUF1QyxDQUFDO0FBRS9FOztHQUVHO0FBQ0gscUJBQWEscUJBQXFC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