export declare const ROOT_CLASS = "bmap-ui-place-autocomplete"; export declare const DROPDOWN_CLASS = "bmap-ui-place-autocomplete__dropdown"; export declare const SUGGESTION_CLASS = "bmap-ui-place-autocomplete__suggestion"; export declare const SUGGESTION_ACTIVE_CLASS = "bmap-ui-place-autocomplete__suggestion--active"; /** * Create the autocomplete inner DOM structure and append to root * @param root - 根容器元素(由 getRoot() 提供) * @param placeholder - 输入框占位文本 */ export declare function createRoot(root: HTMLElement, placeholder: string): void; /** * Create a single suggestion list item * @param title - HTML string (may contain tags for highlighting) * @param address - plain text address * @param hasPoint - whether the suggestion has coordinates (POI pin icon vs search icon) */ export declare function createSuggestionItem(title: string, address: string, hasPoint: boolean): HTMLElement; /** * Reverse-match keyword highlighting algorithm (matches jsapi-webgl implementation) * * 1. Concatenate: city + district + name + business * 2. Search keyword from END of string backwards * 3. Text from match position onward -> title (keyword wrapped in ) * 4. Text before match -> address */ export declare function highlightKeyword(keyword: string, item: { city: string; district: string; name: string; business: string; }): { title: string; address: string; }; /** * Create empty state view */ export declare function createEmptyView(message?: string): HTMLElement;