import { z } from 'zod/v4'; /** * Upper bound for the declared size of an offloaded payload, in bytes (256 MiB). * * The size is read from an incoming (potentially untrusted) pointer and used to * pre-allocate a buffer when streaming the payload back from the store. Capping it * here means a malformed or hostile pointer claiming a multi-gigabyte size fails * schema validation (and is routed to the DLQ) instead of triggering a huge * allocation. 256 MiB is far above any realistic queue payload. */ export declare const MAX_OFFLOADED_PAYLOAD_SIZE: number; /** * Multi-store payload reference schema. * Contains information about where and how the payload was stored. */ export declare const PAYLOAD_REF_SCHEMA: z.ZodObject<{ id: z.ZodString; store: z.ZodString; size: z.ZodNumber; codec: z.ZodOptional; }, z.core.$strip>; export type PayloadRef = z.output; /** * When the payload is too large to be sent in a single message, it is offloaded to a storage service and a pointer to the offloaded payload is sent instead. * This schema represents the reference to the payload that is sent in place of the original payload. * * The schema supports two formats: * 1. New format, payloadRef object with id, store, and size * 2. Old format, offloadedPayloadPointer and offloadedPayloadSize (for backward compatibility) * * At least one format must be present in the message. */ export declare const OFFLOADED_PAYLOAD_POINTER_PAYLOAD_SCHEMA: z.ZodObject<{ payloadRef: z.ZodOptional; }, z.core.$strip>>; offloadedPayloadPointer: z.ZodOptional; offloadedPayloadSize: z.ZodOptional; }, z.core.$loose>; export type OffloadedPayloadPointerPayload = z.output; export declare function isOffloadedPayloadPointerPayload(value: unknown): value is OffloadedPayloadPointerPayload;