import { IdentifiedExpressRequest } from '../helper-types'; import { IdentityBill } from '../types'; export interface RightsTree = IdentifiedExpressRequest> { readonly context?: (scopePart: string, req: TRequest) => any | Promise; readonly right?: (scopePart: string, req: TRequest) => boolean | Promise; readonly children?: { [name: string]: RightsTree; }; readonly wildcard?: RightsTree; }