import { AuthScope, StringStringMap } from './interfaces'; export default class Scope implements AuthScope { private SCOPE; private REVERSE_SCOPE; constructor(scope?: StringStringMap); /** * Returns a scope in the format 'a:r:w' using a set of rules like * ['admin:read', 'admin:write'] */ create(scope: string[]): string; /** * Returns a scope string as an array of rules */ parse(scopeStr: string): string[]; /** * Checks whether or not a perm is included in a parsed scope */ has(scope: string[], perm: string | string[]): boolean; }