import { MercuryAggregateResponse, MercurySingleResponse } from '@sprucelabs/mercury-types'; type MercuryAggregateResponseWithoutErrorInstances = Omit, 'responses'> & { responses: MercurySingleResponseWithoutErrorInstances[]; }; type MercurySingleResponseWithoutErrorInstances = Omit, 'errors'> & { errors?: any[]; }; declare const eventResponseUtil: { mutatingMapAggregateResponseErrorsToSpruceErrors | MercuryAggregateResponseWithoutErrorInstances, T extends { prototype: any; }>(results: R, ClassRef: T): MercuryAggregateResponse; mutatingMapSingleResonseErrorsToSpruceErrors, T extends { prototype: any; }>(response: R, ClassRef: T): R; getFirstResponseOrThrow>(emitResponse: R): NonNullable; getAllResponsePayloadsAndErrors, T extends new (...args: any) => any>(emitResponse: R, ClassRef: T): { payloads: NonNullable[]; errors?: InstanceType[]; }; }; export default eventResponseUtil;