import type { HttpResponse } from './responses.ts'; type Send = (response: HttpResponse) => void; type LegacyResponse = { statusCode: number; headersSent: boolean; req?: unknown; }; /** * Return `response` from a framework controller handler, remembering it in * case an app override drops it (calls `super.x(req, res)` without returning * the result); the adapter then sends it and warns once. It is kept under * `req`, `res`, `req.res` and `res.req`, so it is found if any is the * request's own (the override may pass a copy of `req`, a wrapper of `res`, or * both). The status is also shown on `res` and `req.res` (`res.req.res` for * a copy of `req` without one), where such an override reads it. * Transitional: removed in v6. */ export declare function builtInResponse(req: object, response: T, res?: LegacyResponse): T; /** * Pass `send` the response a framework handler produced and the override * dropped: at once if there is one, else when it arrives. Both `req` and `res` * are claimed, so a handler called without `res` is found too; the response is * delivered once. Transitional: removed in v6. */ export declare function claimBuiltInResponse(req: object, res: object, send: Send): void; export {};