import React from 'react'; import { DrawerProps } from '@patternfly/react-core'; import { ChatbotDisplayMode } from '../Chatbot/Chatbot'; export interface Conversation { /** Conversation id */ id: string; /** Conversation icon */ icon?: React.ReactNode; /** Flag for no icon */ noIcon?: boolean; /** Conversation */ text: string; /** Dropdown items rendered in conversation options dropdown */ menuItems?: React.ReactNode; /** Optional classname applied to conversation options dropdown */ menuClassName?: string; /** Tooltip content and aria-label applied to conversation options dropdown */ label?: string; /** Callback for when user selects item. */ onSelect?: (event?: React.MouseEvent, value?: string | number) => void; } export interface ChatbotConversationHistoryNavProps extends DrawerProps { /** Function called to toggle drawer */ onDrawerToggle: (event: React.KeyboardEvent | React.MouseEvent | React.TransitionEvent) => void; /** Flag to indicate whether drawer is open */ isDrawerOpen: boolean; /** Function called to close drawer */ setIsDrawerOpen: (bool: boolean) => void; activeItemId?: string | number; /** Callback function for when an item is selected */ onSelectActiveItem?: (event?: React.MouseEvent, itemId?: string | number) => void; /** Items shown in conversation history */ conversations: Conversation[] | { [key: string]: Conversation[]; }; /** Text shown in blue button */ newChatButtonText?: string; /** Callback function for when blue button is clicked. Omit to hide blue "new chat button" */ onNewChat?: () => void; /** Content wrapped by conversation history nav */ drawerContent?: React.ReactNode; /** Placeholder for search input */ searchInputPlaceholder?: string; /** Aria label for search input */ searchInputAriaLabel?: string; /** A callback for when the input value changes. Omit to hide input field */ handleTextInputChange?: (value: string) => void; /** Display mode of chatbot */ displayMode: ChatbotDisplayMode; } export declare const ChatbotConversationHistoryNav: React.FunctionComponent; export default ChatbotConversationHistoryNav;