import { EventSpecResponse } from "./AvoEventSpecFetchTypes"; type FetchCallback = (result: EventSpecResponse | null) => void; export declare class AvoEventSpecFetcher { private apiKey; private inFlight; private agent; private static specEndpoint; constructor(apiKey: string); fetch(eventName: string, streamId: string, callback: FetchCallback): void; private resolveCallbacks; /** * Parse the wire format from /trackingPlan/eventSpec into our internal types. * * Wire format: * { events: [{ b, id, vids, p: { "PropName": { t: "string", r: true, v: {...}, rx: {...} } } }], * metadata: { schemaId, branchId, latestActionId, sourceId } } * * Internal format: * { eventSpec: { eventName, properties: [{ propertyName, propertyType, regex? }] } | null, * metadata: { schemaId, branchId, latestActionId, sourceId } } */ static parseWireResponse(wire: any, eventName: string): EventSpecResponse; destroy(): void; } export {};