import { CloudEvent } from "./core"; import { EventContext as V1EventContext } from "../v1"; export type V1Compat = { [K in DataName]: DataType; } & { context: ContextType; }; /** * Patches a CloudEvent with V1 compatibility properties via getters. * This function ensures idempotency by using a Symbol to mark already patched events. * @param event The CloudEvent to patch. * @param getters A map of getters to attach to the event object. * @returns The patched CloudEvent with V1 compatibility properties. */ export declare function addV1Compat, U extends Record any>>(event: T, getters: U): T & { [K in keyof U]: ReturnType; };