import * as apid from '../../../../../api' ; export default interface IRuleApiModel { get ( ruleId ) : Promise < apid . Rule > ; gets ( option ) : Promise < apid . Rules > ; searchKeyword ( option ) : Promise < apid . RuleKeywordItem [ ] > ; add ( rule ) : Promise < apid . RuleId > ; update ( ruleId , rule ) : Promise < void > ; enable ( ruleId ) : Promise < void > ; disable ( ruleId ) : Promise < void > ; delete ( ruleId ) : Promise < void > ; }