/** * Lifecycle callbacks for a classified event and an unclassified outcome, * generic over an adapter's own event and outcome types. * * @public */ export interface EventCallbacks { /** Called with the classified event for a failed outcome. */ onEvent?: (event: TEvent, outcome: TOutcome) => void | Promise; /** Called for every failed outcome, alongside `onEvent`. */ onError?: (outcome: TOutcome) => void | Promise; } /** * Calls `onEvent` then `onError` on `callbacks`, swallowing any error either * callback throws so a failing callback never breaks the caller's own flow. * * @public */ export declare function emitterCallback(event: TEvent, outcome: TOutcome, callbacks: EventCallbacks): Promise; //# sourceMappingURL=emit-error-event.d.ts.map