import { ErrorRequestHandler, RequestHandler } from 'express'; import { EnvoySignatureVerifierOptions } from '../util/EnvoySignatureVerifier'; /** * Sets up an {@link EnvoyPluginSDK} object in the path `req.envoy`. * Modifies the `res` object to include Envoy's helpers, per {@link EnvoyResponse}. * * Also verifies that the request is coming from Envoy, * as well as managing the plugin access token lifecycle. * * @category Middleware */ export declare function envoyMiddleware(options?: EnvoySignatureVerifierOptions): RequestHandler; /** * Catches errors and sets the proper status code. * * @category Middleware */ export declare function errorMiddleware(onError?: (err: Error) => void): ErrorRequestHandler; //# sourceMappingURL=middleware.d.ts.map