import { BufferReader } from '@aztec/foundation/serialize'; import type { FieldsOf } from '@aztec/foundation/types'; import { type RollupHonkProofData } from '../proofs/proof_data.js'; import { CheckpointRollupPublicInputs } from './checkpoint_rollup_public_inputs.js'; /** * Represents inputs of the root rollup circuit. */ export declare class RootRollupPrivateInputs { /** * The previous rollup data. * Note: Root rollup circuit is the latest circuit the chain of circuits and the previous rollup data is the data * from 2 checkpoint root/merge/padding circuits. */ previousRollups: [ RollupHonkProofData, RollupHonkProofData ]; constructor( /** * The previous rollup data. * Note: Root rollup circuit is the latest circuit the chain of circuits and the previous rollup data is the data * from 2 checkpoint root/merge/padding circuits. */ previousRollups: [ RollupHonkProofData, RollupHonkProofData ]); /** * Serializes the inputs to a buffer. * @returns - The inputs serialized to a buffer. */ toBuffer(): Buffer; /** * Serializes the inputs to a hex string. * @returns The instance serialized to a hex string. */ toString(): `0x${string}`; /** * Creates a new instance from fields. * @param fields - Fields to create the instance from. * @returns A new RootRollupPrivateInputs instance. */ static from(fields: FieldsOf): RootRollupPrivateInputs; /** * Extracts fields from an instance. * @param fields - Fields to create the instance from. * @returns An array of fields. */ static getFields(fields: FieldsOf): readonly [[RollupHonkProofData, RollupHonkProofData]]; /** * Deserializes the inputs from a buffer. * @param buffer - A buffer to deserialize from. * @returns A new RootRollupPrivateInputs instance. */ static fromBuffer(buffer: Buffer | BufferReader): RootRollupPrivateInputs; /** * Deserializes the inputs from a hex string. * @param str - A hex string to deserialize from. * @returns A new RootRollupPrivateInputs instance. */ static fromString(str: string): RootRollupPrivateInputs; /** Returns a representation for JSON serialization. */ toJSON(): Buffer; /** Creates an instance from a string. */ static get schema(): import("zod").ZodType; } //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicm9vdF9yb2xsdXBfcHJpdmF0ZV9pbnB1dHMuZC50cyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9yb2xsdXAvcm9vdF9yb2xsdXBfcHJpdm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