`removeRule(rule: Rule): boolean;` should be `removeRule(rule: Rule | ruleName: string): boolean;` or something.