import type { ClassType, Token } from '@nl-framework/core'; import type { GraphqlContext } from '../application'; import type { GuardToken, GuardDecision } from '@nl-framework/http'; import type { GraphQLResolveInfo } from 'graphql'; export interface GraphqlGuardExecutionDetails { readonly parent: unknown; readonly args: Record; readonly context: GraphqlContext; readonly info: GraphQLResolveInfo; readonly resolverClass?: ClassType; readonly resolverHandlerName?: string; } export interface GraphqlExecutionContext { readonly details: GraphqlGuardExecutionDetails; getContext(): T; getArgs = Record>(): TArgs; getInfo(): GraphQLResolveInfo; getParent(): TParent; getResolverClass(): ClassType | undefined; getResolverHandlerName(): string | undefined; resolve(token: Token): Promise; } export type GraphqlGuardToken = GuardToken; export type GraphqlGuardDecision = GuardDecision; //# sourceMappingURL=types.d.ts.map