/** * Hub Server Middleware * * API key authentication and error handling for the mock hub server. * * @see s-7utm - Mock Hub Server + HubProvider Implementation */ import type { Request, Response, NextFunction } from 'express'; /** * API key authentication middleware. * Validates `Authorization: Bearer ` against the provided list of valid keys. */ export declare function apiKeyAuth(validApiKeys: string[]): (req: Request, res: Response, next: NextFunction) => void; /** * Express error handler that maps ProviderError subclasses to HTTP status codes. * Must be registered last (4-argument signature). */ export declare function errorHandler(error: Error, _req: Request, res: Response, _next: NextFunction): void; //# sourceMappingURL=middleware.d.ts.map