import type { PublicMethodsOf } from '@kbn/utility-types' ; import { RulesClient as RulesClientClass } from './rules_client' ; import { PluginConfigDescriptor , PluginInitializerContext } from '../../../../src/core/server' ; import { AlertingPlugin } from './plugin' ; import { configSchema } from './config' ; import { AlertsConfigType } from './types' ; export type RulesClient = PublicMethodsOf < RulesClientClass > ; export type { RuleType , ActionGroup , ActionGroupIdsOf , AlertingPlugin , AlertExecutorOptions , AlertActionParams , AlertServices , AlertTypeState , AlertTypeParams , PartialAlert , AlertInstanceState , AlertInstanceContext , AlertingApiRequestHandlerContext , RuleParamsAndRefs , } from './types' ; export { DEFAULT_MAX_EPHEMERAL_ACTIONS_PER_ALERT } from './config' ; export type { PluginSetupContract , PluginStartContract } from './plugin' ; export type { FindResult } from './rules_client' ; export type { PublicAlertInstance as AlertInstance } from './alert_instance' ; export { parseDuration } from './lib' ; export { getEsErrorMessage } from './lib/errors' ; export type { IAbortableEsClient , IAbortableClusterClient , } from './lib/create_abortable_es_client_factory' ; export { createAbortableEsClientFactory } from './lib/create_abortable_es_client_factory' ; export { ReadOperations , AlertingAuthorizationFilterType , AlertingAuthorization , WriteOperations , AlertingAuthorizationEntity , } from './authorization' ; export const plugin = ( initContext ) => new AlertingPlugin ( initContext ) ; export const config = { schema : configSchema , deprecations : ( { renameFromRoot } ) => [ renameFromRoot ( 'xpack.alerts.healthCheck' , 'xpack.alerting.healthCheck' , { level : 'warning' } ) , renameFromRoot ( 'xpack.alerts.invalidateApiKeysTask.interval' , 'xpack.alerting.invalidateApiKeysTask.interval' , { level : 'warning' } ) , renameFromRoot ( 'xpack.alerts.invalidateApiKeysTask.removalDelay' , 'xpack.alerting.invalidateApiKeysTask.removalDelay' , { level : 'warning' } ) , ] , } ;