diff --git a/x-pack/plugins/beats_management/types/kibana.d.ts b/x-pack/plugins/beats_management/types/kibana.d.ts deleted file mode 100644 index 07a5985f55a13..0000000000000 --- a/x-pack/plugins/beats_management/types/kibana.d.ts +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Elastic License; - * you may not use this file except in compliance with the Elastic License. - */ - -declare module 'ui/autocomplete_providers' { - import { StaticIndexPattern } from 'ui/index_patterns'; - - export type AutocompleteProvider = ( - args: { - config: { - get(configKey: string): any; - }; - indexPatterns: StaticIndexPattern[]; - boolFilter: any; - } - ) => GetSuggestions; - - export type GetSuggestions = ( - args: { - query: string; - selectionStart: number; - selectionEnd: number; - } - ) => Promise; - - export type AutocompleteSuggestionType = 'field' | 'value' | 'operator' | 'conjunction'; - - export interface AutocompleteSuggestion { - description: string; - end: number; - start: number; - text: string; - type: AutocompleteSuggestionType; - } - - export function addAutocompleteProvider(language: string, provider: AutocompleteProvider): void; - - export function getAutocompleteProvider(language: string): AutocompleteProvider | undefined; -}