export type { NextFn } from '@poppinss/middleware/types'; /** * Accept one or more of the mentioned type */ export type OneOrMore = T | T[]; /** * Class constructor type */ export type Constructor = new (...args: any[]) => T; /** * A function that lazily imports a middleware */ export type LazyImport = () => Promise<{ default: DefaultExport; }>; /** * Unwraps default export from a lazy import function */ export type UnWrapLazyImport> = Awaited>['default'];