import { EventSpecMetadata, PropertyValidationResult } from "./eventSpec/AvoEventSpecFetchTypes"; export interface BaseBody { apiKey: string; appName: string; appVersion: string; libVersion: string; env: string; libPlatform: "node"; messageId: string; trackingId: string; sessionId: string; anonymousId: string; createdAt: string; samplingRate: number; publicEncryptionKey?: string; } export interface EventPropertyEncrypted { propertyName: string; propertyType: string; encryptedPropertyValue: string; children?: any; } export interface EventPropertyPlain { propertyName: string; propertyType: string; children?: any; } export interface EventPropertyValidation { failedEventIds?: string[]; passedEventIds?: string[]; } export type EventProperty = (EventPropertyEncrypted | EventPropertyPlain) & EventPropertyValidation; export interface EventSchemaBody extends BaseBody { type: "event"; eventName: string; eventProperties: Array; avoFunction: boolean; eventId: string | null; eventHash: string | null; streamId?: string; eventSpecMetadata?: EventSpecMetadata; } export type InspectorBody = EventSchemaBody; export declare class AvoNetworkCallsHandler { private apiKey; private envName; private appName; private appVersion; private libVersion; private samplingRate; private publicEncryptionKey?; private static trackingEndpoint; constructor(apiKey: string, envName: string, appName: string, appVersion: string, libVersion: string, publicEncryptionKey?: string); callInspectorWithBatchBody(inEvents: Array): Promise; bodyForEventSchemaCall(anonymousId: string, eventName: string, eventProperties: Array<{ propertyName: string; propertyType: string; children?: any; }>, eventId: string | null, eventHash: string | null, rawEventProperties?: { [propName: string]: any; }): EventSchemaBody; buildEventProperties(eventProperties: Array<{ propertyName: string; propertyType: string; children?: any; }>, rawEventProperties?: { [propName: string]: any; }): Array; bodyForValidatedEventSchemaCall(anonymousId: string, eventName: string, eventProperties: Array, eventId: string | null, eventHash: string | null, eventSpecMetadata: EventSpecMetadata, propertyResults: PropertyValidationResult[]): EventSchemaBody; private encryptProperties; private createBaseCallBody; }