import type { CascaderProps } from 'antd'; import React from 'react'; import { AnyObject } from '../_util/type'; type SemanticType = 'root' | 'content' | 'popup'; export interface SuggestionItem extends AnyObject { label: React.ReactNode; value: string; icon?: React.ReactNode; children?: SuggestionItem[]; extra?: React.ReactNode; } export interface RenderChildrenProps { onTrigger: (info?: T | false) => void; onKeyDown: (e: React.KeyboardEvent) => void; open: boolean; } export interface SuggestionProps extends Omit { prefixCls?: string; className?: string; rootClassName?: string; style?: React.CSSProperties; children?: (props: RenderChildrenProps) => React.ReactElement; open?: boolean; onOpenChange?: (open: boolean) => void; items: SuggestionItem[] | ((info?: T) => SuggestionItem[]); onSelect?: (value: string, info: SuggestionItem[]) => void; block?: boolean; styles?: Partial>; classNames?: Partial>; } declare function Suggestion(props: SuggestionProps): React.JSX.Element; declare namespace Suggestion { var displayName: string; } export default Suggestion;