import { Fr } from '@aztec/foundation/curves/bn254'; import { BufferReader } from '@aztec/foundation/serialize'; import type { FieldsOf } from '@aztec/foundation/types'; export declare class ParityPublicInputs { /** Root of the SHA256 tree. */ shaRoot: Fr; /** Root of the converted tree. */ convertedRoot: Fr; /** Root of the VK tree */ vkTreeRoot: Fr; constructor( /** Root of the SHA256 tree. */ shaRoot: Fr, /** Root of the converted tree. */ convertedRoot: Fr, /** Root of the VK tree */ vkTreeRoot: Fr); /** * Serializes the inputs to a buffer. * @returns The inputs serialized to a buffer. */ toBuffer(): Buffer; /** * Serializes the inputs to a hex string. * @returns The inputs serialized to a hex string. */ toString(): `0x${string}`; /** Returns a representation for JSON serialization. */ toJSON(): Buffer; /** * Creates a new ParityPublicInputs instance from the given fields. * @param fields - The fields to create the instance from. * @returns The instance. */ static from(fields: FieldsOf): ParityPublicInputs; /** * Extracts the fields from the given instance. * @param fields - The instance to get the fields from. * @returns The instance fields. */ static getFields(fields: FieldsOf): readonly [Fr, Fr, Fr]; /** * Deserializes the inputs from a buffer. * @param buffer - The buffer to deserialize from. * @returns A new ParityPublicInputs instance. */ static fromBuffer(buffer: Buffer | BufferReader): ParityPublicInputs; /** * Deserializes the inputs from a hex string. * @param str - The hex string to deserialize from. * @returns A new ParityPublicInputs instance. */ static fromString(str: string): ParityPublicInputs; static get schema(): import("zod").ZodType; } //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicGFyaXR5X3B1YmxpY19pbnB1dHMuZC50cyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9wYXJpdHkvcGFyaXR5X3B1YmxpY19pbnB1dHMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLEVBQUUsRUFBRSxNQUFNLGdDQUFnQyxDQUFDO0FBRXBELE9BQU8sRUFBRSxZQUFZLEVBQXFCLE1BQU0sNkJBQTZCLENBQUM7QUFFOUUsT0FBTy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