import { type Component, type JSX, type ParentProps } from 'solid-js'; import type { ChatMessage } from '@conciv/protocol/chat-message-types'; import { type Slottable } from '../util/primitive.js'; import { type SuggestionData } from '../suggestion/suggestion.js'; type DivProps = JSX.HTMLAttributes & Slottable>; declare function Root(props: DivProps): JSX.Element; type ViewportProps = DivProps & { footer?: JSX.Element; ref?: HTMLDivElement | ((element: HTMLDivElement) => void); }; declare function Viewport(props: ViewportProps): JSX.Element; declare function ViewportFooter(props: DivProps): JSX.Element; export type MessagesComponents = { UserMessage?: Component; AssistantMessage?: Component; SystemMessage?: Component; }; type MessagesProps = { components: MessagesComponents; children?: never; } | { children: (message: () => ChatMessage) => JSX.Element; components?: never; }; declare function Messages(props: MessagesProps): JSX.Element; type MessageByIndexProps = { index: number; components: MessagesComponents; }; declare function MessageByIndex(props: MessageByIndexProps): JSX.Element; type MessageByIdProps = { messageId: string; components: MessagesComponents; }; declare function Unstable_MessageById(props: MessageByIdProps): JSX.Element; declare function ScrollToBottom(props: JSX.ButtonHTMLAttributes): JSX.Element; type SuggestionProps = JSX.ButtonHTMLAttributes & { prompt: string; send?: boolean; clearComposer?: boolean; }; declare function Suggestion(props: SuggestionProps): JSX.Element; type SuggestionsProps = { components: { Suggestion: Component; }; each: SuggestionData[]; children?: never; } | { children: (suggestion: () => SuggestionData) => JSX.Element; each: SuggestionData[]; components?: never; }; declare function Suggestions(props: SuggestionsProps): JSX.Element; declare function Empty(props: ParentProps): JSX.Element; type IfProps = ParentProps<{ empty?: boolean; running?: boolean; disabled?: boolean; }>; declare function If(props: IfProps): JSX.Element; export declare const Thread: typeof Root & { Root: typeof Root; Viewport: typeof Viewport; ViewportFooter: typeof ViewportFooter; Messages: typeof Messages; MessageByIndex: typeof MessageByIndex; Unstable_MessageById: typeof Unstable_MessageById; ScrollToBottom: typeof ScrollToBottom; Suggestion: typeof Suggestion; Suggestions: typeof Suggestions; Empty: typeof Empty; If: typeof If; }; export {}; //# sourceMappingURL=thread.d.ts.map