import { type Accessor, type Component, type JSX, type ParentProps } from 'solid-js'; import type { ToolCardEntry, ToolCardProps, ToolCardView } from '@conciv/protocol/tool-view-types'; import { type GroupEntry, type Grouping, type Turn } from '../store/grouping.js'; import { type PageSessionConfig } from '../store/page-session.js'; import { type AttachmentCardSlot } from './attachment-dispatch.js'; export type ThreadComponents = { AssistantMessage?: Component; ToolFallback?: ToolCardView; }; export type TurnPrefixSource = { key: string; role: Turn['role']; turn: Accessor; }; export type ThreadRootProps = ParentProps<{ class?: string; }>; export type ThreadMessagesProps = { components?: ThreadComponents; tools?: ToolCardEntry[]; turnPrefix?: (turn: TurnPrefixSource) => JSX.Element; attachmentCards?: readonly AttachmentCardSlot[]; pageSession?: PageSessionConfig; grouping?: Grouping; groupEntries?: readonly GroupEntry[]; readOnly?: boolean; }; declare function ThreadRoot(props: ThreadRootProps): JSX.Element; declare function ThreadViewport(props: ParentProps<{ ref?: (element: HTMLElement) => void; }>): JSX.Element; declare function ThreadWelcome(props: ParentProps): JSX.Element; declare function ThreadMessages(props: ThreadMessagesProps): JSX.Element; declare function ThreadComposer(props: ParentProps): JSX.Element; export declare const Thread: typeof ThreadRoot & { Root: typeof ThreadRoot; Viewport: typeof ThreadViewport; Welcome: typeof ThreadWelcome; Messages: typeof ThreadMessages; Composer: typeof ThreadComposer; }; export type { ToolCardProps }; //# sourceMappingURL=thread.d.ts.map