import type { PublicMethodsOf } from '@kbn/utility-types' ; import { RuleTypeRegistry } from './rule_type_registry' ; type Schema = PublicMethodsOf < RuleTypeRegistry > ; const createRuleTypeRegistryMock = ( ) => { const mocked = { has : jest . fn ( ) , register : jest . fn ( ) , get : jest . fn ( ) , list : jest . fn ( ) , ensureRuleTypeEnabled : jest . fn ( ) , } ; return mocked ; } ; export const ruleTypeRegistryMock = { create : createRuleTypeRegistryMock , } ;