import type { Next } from 'hono'; interface Forwarded { readonly next: (error?: unknown) => Promise; readonly settled: () => Promise; } /** * Holds the continuation a middleware may hand to `next` open so the bridge can await it. * * An Express middleware reports a failure by calling `next(error)`; Hono's `next` takes no * argument, so dropping it here is what once turned a clear upstream error into a confusing one * further down the chain. The first failure is remembered and rethrown once the chain settles. * * `next` may also be deferred — `graphql-upload` calls it only once the body has been read — so * when the middleware has not called it yet the chain also waits on the response being assigned * (`whenResponseSettled`), which is how a middleware that answers without `next` finishes. */ declare const forwardFrom: (continuation: Next, responseSettled?: Promise) => Forwarded; export { forwardFrom }; export type { Forwarded }; //# sourceMappingURL=forwarded.d.ts.map