import type { NestContext } from '#adapter/core/context'; /** * Hono builds these seven helpers as own properties of each context, so they can only be wrapped * per request; the mark is what keeps the error path from wrapping them a second time. */ declare const finalizeOnResponse: (context: NestContext) => void; /** * Resolves once the response has been assigned on the context. Everything lands there — a * Node-style `res.send`, the helpers `finalizeOnResponse` routes through `context.res`, and a route * that builds its own `Response`. A middleware may defer `next` (graphql-upload calls it only after * the body has been read), so the chain waits on this rather than assuming `next` already ran. */ declare const whenResponseSettled: (context: NestContext) => Promise; export { finalizeOnResponse, whenResponseSettled }; //# sourceMappingURL=response-helpers.d.ts.map