/** * @license * Copyright (c) 2016 The Polymer Project Authors. All rights reserved. * This code may only be used under the BSD style license found at * http://polymer.github.io/LICENSE.txt * The complete set of authors may be found at * http://polymer.github.io/AUTHORS.txt * The complete set of contributors may be found at * http://polymer.github.io/CONTRIBUTORS.txt * Code distributed by Google as part of the polymer project is also * subject to an additional IP rights grant found at * http://polymer.github.io/PATENTS.txt */ import { Rule, RuleCollection } from './rule'; /** * A centralized place where lint rules and rule collections can register * themselves and you can get a collection of rules by querying. * * Almost all users should not construct their own registry, but instead use * the instance exported as `registry` from this module. */ export declare class LintRegistry { private _all; /** * Register the given rule or collection so that it can be later retrieved. */ register(rule: Rule | RuleCollection): void; /** * Given an array of string codes for registered rules and rule collections, * return the set of rules. */ getRules(ruleCodes: ReadonlyArray): Set; private _getRules; readonly allRules: Iterable; readonly allRuleCollections: Iterable; } export declare const registry: LintRegistry;