import React from "react"; import { ValidIconName } from "../Icon/canonicalIconNames"; import { TestIconProps } from "./../Icon/TestIcon"; import { SuggestFieldItemRendererModifierProps } from "./interfaces"; /** * Returns a function to be used in an AutoComplete widget for rendering custom elements based on the query string. * * @param itemTextRenderer The text or element that should be displayed for the new custom item suggestion. * @param iconName Optional icon to show left to the text. */ export declare const createNewItemRendererFactory: (itemTextRenderer: (query: string) => string | React.JSX.Element, iconName?: ValidIconName | React.ReactElement) => (query: string, modifiers: SuggestFieldItemRendererModifierProps, handleClick: React.MouseEventHandler) => React.JSX.Element;