import { AutocompleteSuggestion } from '@dynatrace-sdk/client-query'; import { type SuggestionCache } from './get-suggestions.js'; import type { AutocompleteProvider } from '../../base-code-editor/auto-completion/autocompletion.extension.js'; type FilteredSuggestion = AutocompleteSuggestion & { score: number; startPos: number; }; /** * Derives the tooltip title for a suggestion by finding the first part that * produces a token type label, then combining that part's suggestion text * (capitalized) with the lower-cased label (e.g. part `"arrayAvg"` + `"Function"` → `"ArrayAvg function"`). * @param suggestion - the suggestion to derive the title for. * @returns the derived title string, or `undefined` when no part produces a token type label. */ export declare function getSuggestionTitle(suggestion: FilteredSuggestion): string | undefined; /** * Creates the DQL autocomplete provider bound to a `cache` owned by the calling * editor instance. Keeping the cache per-instance ensures suggestions never * outlive the editor or leak between editors (or between dev-app stories). * @param cache - the suggestion cache owned by the editor instance. */ export declare const createSuggestionAutocompletion: (cache: SuggestionCache) => AutocompleteProvider; export {}; //# sourceMappingURL=suggestion-autocompletions.d.ts.map