import type { HttpContext } from '@adonisjs/core/http'; import type { NextFn } from '@adonisjs/core/types/http'; /** * Server middleware that answers A2A requests before the router runs — so before the bodyparser, * the session and CSRF. That is deliberate: A2A is stateless and authenticated by the personal * agent's signed JWT, PACT requires authenticating BEFORE the body is read (a malformed body without * a token is a 401, not a parse error), and its bodies are JSON whatever `Content-Type` they carry. * Everything that is not under the A2A prefix passes straight through. */ export default class A2aServerMiddleware { handle(ctx: HttpContext, next: NextFn): Promise; } //# sourceMappingURL=server_middleware.d.ts.map