UNPKG

@wordpress/components

Version:
20 lines 590 B
/** * Internal dependencies */ import type { WPCompleter } from './types'; type AutocompleteMatch = { completer: WPCompleter; filterValue: string; }; type AutocompleteMatchOptions = { matchCount: number; isBackspacing: boolean; getTextAfterSelection: () => string; lastCompletion?: { name: string; value: string; } | null; }; export declare function getAutocompleteMatch(textContent: string, completers: WPCompleter[], options: AutocompleteMatchOptions): AutocompleteMatch | null; export {}; //# sourceMappingURL=get-autocomplete-match.d.ts.map