import type { Ctx } from "./types.js"; export type Middleware = (ctx: C, next: () => Promise) => void | Promise; export declare function compose(stack: Middleware[]): (ctx: C, nextOuter?: () => Promise) => Promise;