{ contextRegExp?: RegExp; resourceRegExp: RegExp } | { checkResource: (resource: string, context: string) => boolean }