import { Fr } from '@aztec/foundation/curves/bn254'; import { BufferReader } from '@aztec/foundation/serialize'; import { AztecAddress } from '../aztec-address/index.js'; /** * Read-only data that is passed to the contract through an oracle during a transaction execution. * TODO(#12425): Check whether this is always used to represent a transient capsule and if so, rename to * TransientCapsule. */ export declare class Capsule { /** The address of the contract the capsule is for */ readonly contractAddress: AztecAddress; /** The storage slot of the capsule */ readonly storageSlot: Fr; /** Data passed to the contract */ readonly data: Fr[]; /** Optional namespace for the capsule contents */ readonly scope?: AztecAddress | undefined; constructor( /** The address of the contract the capsule is for */ contractAddress: AztecAddress, /** The storage slot of the capsule */ storageSlot: Fr, /** Data passed to the contract */ data: Fr[], /** Optional namespace for the capsule contents */ scope?: AztecAddress | undefined); static get schema(): import("zod").ZodType; toJSON(): `0x${string}`; toBuffer(): Buffer; static fromBuffer(buffer: Buffer | BufferReader): Capsule; toString(): `0x${string}`; static fromString(str: string): Capsule; } //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2Fwc3VsZS5kLnRzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL3R4L2NhcHN1bGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLEVBQUUsRUFBRSxNQUFNLGdDQUFnQyxDQUFDO0FBRXBELE9BQU8sRUFBRSxZQUFZLEVBQXFCLE1BQU0sNkJBQTZCLENBQUM7QUFHOUUsT0FBTyxFQUFFLFlBQVksRUFBRSxNQUFNLDJCQUEyQixDQUFDO0FBR3pEOzs7O0dBSUc7QUFDSCxxQkFBYSxPQUFPO0lBRWhCLHFEQUFxRDthQUNyQyxlQUFlLEVBQUUsWUFBWTtJQUM3QyxzQ0FBc0M7YUFDdEIsV0FBVyxFQUFFLEVBQUU7SUFDL0IsbUNBQW1DO2FBQ25CLElBQUksRUFBRSxFQUFFLEVBQUU7SUFDMUIsa0RBQWtEO2FBQ2xDLEtBQUssQ0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