import type { ZodType } from 'zod'; import type { ParsedResult } from '../types/index.js'; import { envelopeDiscriminator } from './envelope.js'; /** * Validates a WITH_METADATA batch and extracts each record's parsed `Data.detail`. * * Returns details in input order. Invalid records fail the whole batch, with * validation paths relative to the original input. Use the record schema * directly for single-object delivery or to retain delivery metadata. */ declare const EventBridgeWithMetadataEnvelope: { /** * Identifies the envelope's array output. * @hidden */ [envelopeDiscriminator]: "array"; /** * Parses every record's detail using the supplied schema. * * @param data - the batch to parse * @param schema - the schema for each record's detail */ parse(data: unknown, schema: ZodType): T[]; /** * Parses a batch, returning the original input and error on failure. * * @param data - the batch to parse * @param schema - the schema for each record's detail */ safeParse(data: unknown, schema: ZodType): ParsedResult; }; export { EventBridgeWithMetadataEnvelope }; //# sourceMappingURL=eventbridge-with-metadata.d.ts.map