import React, { ReactNode } from 'react'; import { CHARACTER_MATCHING, STRING_MATCHING } from '../const'; import { ContextType } from '../types'; /** * InternalContext manages internal states between the components * without exposing methods to global states */ interface InternalContextInitialStateType { isPopoverExpanded: boolean; listItemActiveIndex: number; updateInternalContext: any; /** * Need for popover list active index keydown */ dataLength: number; /** * Need while rendering highlighted words */ matchingAlgorithm?: typeof CHARACTER_MATCHING | typeof STRING_MATCHING; } export declare const InternalContext: React.Context; declare type D = (values: ContextType) => JSX.Element; interface WrapperProps { children: D | any; isFunction: boolean; } export declare const Wrapper: React.ForwardRefExoticComponent & React.RefAttributes>; export interface PopOverListProps extends React.OlHTMLAttributes { children: ReactNode; } export declare const PopOverList: React.ForwardRefExoticComponent>; export interface PopOverOptionProps extends React.LiHTMLAttributes { children: ReactNode; optionIndex: number; } export declare const PopOverOption: React.FC; export interface PopOverOptionTextProps extends React.HTMLAttributes { className?: string; value: string; as: string; } export declare const PopOverOptionText: React.FC; export {};