import { type Component, type JSX, type ParentProps } from 'solid-js'; import type { ChatPart as Part, ThinkingPart } from '@conciv/protocol/chat-message-types'; import type { ToolCardEntry, ToolUIComponent } from '@conciv/protocol/tool-view-types'; import { type Slottable } from '../util/primitive.js'; import { type GroupKey, type Grouping } from '../../store/grouping.js'; type DivProps = JSX.HTMLAttributes & Slottable>; declare function Root(props: DivProps): JSX.Element; export type PartsComponents = { Text?: Component<{ part: Extract; }>; Thinking?: Component<{ part: ThinkingPart; }>; Image?: Component<{ part: Extract; }>; StructuredOutput?: Component<{ part: Extract; }>; tools?: { entries?: ToolCardEntry[]; Fallback?: ToolUIComponent; } | { Override: ToolUIComponent; }; Empty?: Component; }; type PartsProps = { components?: PartsComponents; children?: never; } | { children: (part: () => Part, index: () => number) => JSX.Element; components?: never; }; declare function Parts(props: PartsProps): JSX.Element; type PartByIndexProps = { index: number; components?: PartsComponents; }; declare function PartByIndex(props: PartByIndexProps): JSX.Element; type IfConditions = { user?: boolean; assistant?: boolean; system?: boolean; hasContent?: boolean; hasText?: boolean; last?: boolean; lastOrHover?: boolean; hasAttachments?: boolean; }; declare function If(props: ParentProps): JSX.Element; declare function MessageError(props: ParentProps): JSX.Element; type AttachmentsComponents = { Image?: Component; Document?: Component; Audio?: Component; Video?: Component; File?: Component; Attachment?: Component; }; declare function Attachments(props: { components: AttachmentsComponents; }): JSX.Element; declare function AttachmentByIndex(props: { index: number; components: AttachmentsComponents; }): JSX.Element; type GroupedComponents = PartsComponents & { Group?: Component>; }; declare function GroupedParts(props: { components?: GroupedComponents; grouping?: Grouping; }): JSX.Element; export declare const Message: typeof Root & { Root: typeof Root; Parts: typeof Parts; PartByIndex: typeof PartByIndex; Attachments: typeof Attachments; AttachmentByIndex: typeof AttachmentByIndex; Unstable_PartsGrouped: typeof GroupedParts; If: typeof If; Error: typeof MessageError; }; export {}; //# sourceMappingURL=message.d.ts.map