import { Event } from './event'; /** * Unstructured object to let users pass extra data to middleware */ export interface MiddlewareExtra { [name: string]: any; } /** * Data to be processed by middleware */ export interface MiddlewarePayload { event: Event; extra?: MiddlewareExtra; } /** * Function called at the end of each Middleware to run the next middleware in the chain */ export declare type MiddlewareNext = (payload: MiddlewarePayload) => void; /** * A function to run on the Event stream (each logEvent call) * * @param payload The event and extra data being sent * @param next Function to run the next middleware in the chain, not calling next will end the middleware chain */ export declare type Middleware = (payload: MiddlewarePayload, next: MiddlewareNext) => void; //# sourceMappingURL=middleware.d.ts.map