text: Title: [ES Client][Alerting] Follow up issue for clean up TS annotations added during migrating alerting plugins to use the new type definitions.
  Body: This issue is a follow up request on the changes maded in alerts, actions, stack_alerts, event_log, task_manager, triggers_actions_ui plugins by the [PR](https://github.com/elastic/kibana/pull/83808) 
  The action is needed is go over the added annotations for possible TS errors and update our plugins code to remove it.
  Example:
  `// @ts-expect-error not compatible response type`
  
  In addition we should replace all imports like:
  ```
  // eslint-disable-next-line @kbn/eslint/no-restricted-paths
  import { elasticsearchClientMock } from '../../../../../../src/core/server/elasticsearch/client/mocks';
  ```
  with the unrestricted path `src/core/server/mocks path` and exposed type `elasticsearchServiceMock` which contains all methods which we use from elasticsearchClientMock