/// import { ErrorRequestHandler, Request, RequestHandler, Response } from 'express'; import { OutgoingHttpHeaders } from 'http'; import { Cosmas } from './index'; declare const errorSymbol: unique symbol; type AckeeRequest = Request & { _startAt?: [number, number]; ackId?: string; }; type AckeeResponse = Response & { _startAt?: [number, number]; time?: string; out?: object; [errorSymbol]?: any; headers?: OutgoingHttpHeaders; }; export type CosmasExpressMiddleware = (this: Cosmas, req: AckeeRequest, response: AckeeResponse, next: any) => void; declare const expressMiddleware: RequestHandler; declare const expressErrorMiddleware: ErrorRequestHandler; export { expressErrorMiddleware, expressMiddleware };