import { ExoConnResponse } from '../../ExoConnection/ExoConnResponse/ExoConnResponse'; import { ExoConnection } from '../../ExoConnection/ExoConnection'; import { ExoContext } from '../../ExoContext/ExoContext'; export interface ExoMiddlewareProps { conn: ExoConnection; res: ExoConnResponse; ctx: ExoContext; } export type ExoMiddleware = (props: ExoMiddlewareProps) => any | Promise;