import type { EpochNumber, SlotNumber } from '@aztec/foundation/branded-types'; import type { Buffer32 } from '@aztec/foundation/buffer'; import type { Fq, Fr } from '@aztec/foundation/curves/bn254'; import type { Point } from '@aztec/foundation/curves/grumpkin'; import type { EthAddress } from '@aztec/foundation/eth-address'; import { type ZodFor } from '@aztec/foundation/schemas'; import { z } from 'zod'; import type { AbiDecoded } from '../abi/decoder.js'; import { EventSelector } from '../abi/event_selector.js'; import { FunctionSelector } from '../abi/function_selector.js'; import { NoteSelector } from '../abi/note_selector.js'; import { AztecAddress } from '../aztec-address/index.js'; import { Gas } from '../gas/gas.js'; /** * Validation schemas for common types. Every schema must match its toJSON. * Foundation schemas are repeated here to aid type inference * */ export declare const schemas: { /** Accepts a hex string. */ EthAddress: ZodFor; /** Accepts a hex string. */ Fr: ZodFor; /** Accepts a hex string. */ Fq: ZodFor; /** Point. Serialized as a hex string. */ Point: ZodFor; /** Coerces any input to bigint. */ BigInt: z.ZodPipeline, z.ZodBigInt>; /** Coerces any input to integer number. */ Integer: z.ZodPipeline, z.ZodNumber>; /** Coerces input to UInt32. */ UInt32: z.ZodPipeline, z.ZodNumber>; /** Coerces input to UInt64. */ UInt64: z.ZodPipeline, z.ZodBigInt>; /** Accepts a hex string as a Buffer32 type. */ Buffer32: ZodFor; /** Accepts a base64 string or an object `{ type: 'Buffer', data: [byte, byte...] }` as a buffer. */ Buffer: ZodFor>; /** Accepts a hex string as a buffer. */ BufferHex: z.ZodEffects, string, string>, Buffer, string>; /** Hex string with an optional 0x prefix which gets removed as part of the parsing. */ HexString: z.ZodEffects, string, string>; /** Schema for secret config value */ SecretValue: typeof import("@aztec/foundation/config").SecretValue.schema; /** Accepts a hex string. */ AztecAddress: ZodFor; /** Accepts a hex string. */ NoteSelector: z.ZodType; /** Accepts a hex string. */ FunctionSelector: ZodFor; /** Accepts a hex string. */ EventSelector: z.ZodType; /** Accepts a number, bigint, or string and coerces to SlotNumber. */ SlotNumber: ZodFor; /** Accepts a number, bigint, or string and coerces to EpochNumber. */ EpochNumber: ZodFor; GasUsed: z.ZodObject<{ totalGas: z.ZodEffects, z.ZodNumber>; l2Gas: z.ZodPipeline, z.ZodNumber>; }, "strip", z.ZodTypeAny, { daGas: number; l2Gas: number; }, { daGas: string | number | bigint; l2Gas: string | number | bigint; }>, Gas, { daGas: string | number | bigint; l2Gas: string | number | bigint; }>; teardownGas: z.ZodEffects, z.ZodNumber>; l2Gas: z.ZodPipeline, z.ZodNumber>; }, "strip", z.ZodTypeAny, { daGas: number; l2Gas: number; }, { daGas: string | number | bigint; l2Gas: string | number | bigint; }>, Gas, { daGas: string | number | bigint; l2Gas: string | number | bigint; }>; publicGas: z.ZodEffects, z.ZodNumber>; l2Gas: z.ZodPipeline, z.ZodNumber>; }, "strip", z.ZodTypeAny, { daGas: number; l2Gas: number; }, { daGas: string | number | bigint; l2Gas: string | number | bigint; }>, Gas, { daGas: string | number | bigint; l2Gas: string | number | bigint; }>; billedGas: z.ZodEffects, z.ZodNumber>; l2Gas: z.ZodPipeline, z.ZodNumber>; }, "strip", z.ZodTypeAny, { daGas: number; l2Gas: number; }, { daGas: string | number | bigint; l2Gas: string | number | bigint; }>, Gas, { daGas: string | number | bigint; l2Gas: string | number | bigint; }>; }, "strip", z.ZodTypeAny, { totalGas: Gas; teardownGas: Gas; publicGas: Gas; billedGas: Gas; }, { totalGas: { daGas: string | number | bigint; l2Gas: string | number | bigint; }; teardownGas: { daGas: string | number | bigint; l2Gas: string | number | bigint; }; publicGas: { daGas: string | number | bigint; l2Gas: string | number | bigint; }; billedGas: { daGas: string | number | bigint; l2Gas: string | number | bigint; }; }>; }; export declare const AbiDecodedSchema: ZodFor; export declare const NullishToUndefined: (schema: ZodFor) => z.ZodEffects>>, any, any>; export { type ZodFor, zodFor, bufferSchema, hexSchema, hexSchemaFor, bufferSchemaFor, type ApiSchemaFor, optional, mapSchema, pickFromSchema, } from '@aztec/foundation/schemas'; //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJ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