import type { ClassType, Token } from '@nl-framework/core'; import type { RequestContext, ResolvedRouteInfo } from '../interfaces/http'; export type GuardDecision = void | boolean | Response; export interface HttpExecutionContext { readonly context: RequestContext; getRequest(): T; getRoute(): ResolvedRouteInfo; getClass(): ClassType | undefined; getHandlerName(): string | undefined; getContainer(): RequestContext['container']; } export interface CanActivate { canActivate(context: HttpExecutionContext): GuardDecision | Promise; } export type GuardFunction = (context: HttpExecutionContext) => GuardDecision | Promise; export type GuardInstance = CanActivate | GuardFunction; export type GuardToken = Token | GuardFunction; //# sourceMappingURL=types.d.ts.map