@automattic/agenttic-ui
Version:
UI components for the Agenttic framework
32 lines • 1.33 kB
TypeScript
import React from 'react';
import type { ComponentType } from 'react';
import type { Message, NoticeConfig, Suggestion } from '../../types';
interface InputHandlers {
inputValue: string;
onInputChange: (value: string) => void;
onSubmit: () => void;
onKeyDown: (e: React.KeyboardEvent<HTMLTextAreaElement>) => void;
textareaRef: React.RefObject<HTMLTextAreaElement>;
placeholder?: string | string[];
isProcessing: boolean;
onStop?: () => void;
}
interface ConversationViewProps extends InputHandlers {
messages: Message[];
error?: string | null;
fromCompact?: boolean;
showHeader?: boolean;
onClose?: () => void;
onExpand?: () => void;
notice?: NoticeConfig;
emptyView?: React.ReactNode;
suggestions?: Suggestion[];
clearSuggestions?: () => void;
messageRenderer?: ComponentType<{
children: string;
}>;
focusOnMount?: boolean;
}
export declare function ConversationView({ messages, error, inputValue, onInputChange, onSubmit, onKeyDown, textareaRef, placeholder, isProcessing, onStop, fromCompact, showHeader, onClose, onExpand, notice, emptyView, suggestions, clearSuggestions, messageRenderer, focusOnMount, }: ConversationViewProps): import("react/jsx-runtime").JSX.Element;
export {};
//# sourceMappingURL=ConversationView.d.ts.map