import type { Context, DefaultState, Next } from 'koa'; import type { HttpRequest, HttpRequestBase } from '#koala/Http/Request/index'; import type { HttpResponse } from '#koala/Http/Response/index'; import type { User } from '#koala/Security/types'; export interface HttpScope extends Context { request: TRequest; response: HttpResponse; user?: TUser; } export type NextMiddleware = Next; export type HttpMiddleware = (scope: HttpScope, next: NextMiddleware) => Promise; export type AppState = DefaultState; //# sourceMappingURL=types.d.ts.map