import { IIntegrationEvent, IIntegrationEventMetadata } from './integration-event-interfaces'; export declare function createIntegrationEvent
(eventName: string, payload: P, metadata?: Partial ;
export declare function serializeIntegrationEvent (event: IIntegrationEvent ): string;
/**
* Deserialize a JSON string back into an integration event.
*
* REL-007 (2026-05-08): now enforces the same protections as
* `IntegrationEvent.deserialize()` — 1 MB size cap, prototype-pollution
* sanitization, and 50-level recursion depth limit. Previously this
* function called `JSON.parse` directly with no protections, making it a
* vector for prototype pollution and DoS via deeply nested payloads.
*
* @throws Error if payload exceeds 1 MB, exceeds 50-level depth, or JSON
* is invalid
*/
export declare function deserializeIntegrationEvent (jsonString: string): IIntegrationEvent ;
export declare function generateIdempotencyKey (event: IIntegrationEvent ): string;