/** * Does `granted` cover a single `required` scope? * @param {string[]} granted * @param {string} required * @returns {boolean} */ export function covers(granted: string[], required: string): boolean; /** * All required scopes must be covered by granted. * @param {string[]} granted * @param {string[]} required * @returns {boolean} */ export function hasAll(granted: string[], required: string[]): boolean; /** * At least one required scope must be covered. * @param {string[]} granted * @param {string[]} required * @returns {boolean} */ export function hasAny(granted: string[], required: string[]): boolean;