import type React from 'react'; import type { TimelineEvent } from './types.js'; /** * @csspart base */ export interface MessageTimelineOwnProps { /** * Unique identifier for the element. * @example 'example-id' */ id?: string; /** * Role of the message sender (user or assistant). * @example 'example' */ messageRole?: string; /** * Content alignment. Allowed values: `auto`, `start`, `end`. * @example 'auto' */ alignment?: 'auto' | 'start' | 'end'; /** * Component size. Allowed values: `xs`, `sm`, `md`, `lg`, `xl`. * @example 'xs' */ size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl'; /** * Display name of the message sender. * @example 'example' */ senderName?: string; /** * Array of timeline event objects to display. * @example [{ type: 'text-done', id: 'event-1', content: 'Started' }] */ events?: TimelineEvent[]; /** * Message role for visual alignment (user or assistant). Allowed values: `user`, `assistant`. * @example 'user' */ role?: 'user' | 'assistant'; /** CSS class applied to the Custom Element host. * @example 'my-component' */ className?: string; /** Inline styles applied to the Custom Element host. * @example { marginTop: 8 } */ style?: React.CSSProperties; } /** * Props for ``: the component's own API plus every standard DOM * attribute and native React event handler, forwarded verbatim to the * `` host — `id`, `data-*`, `aria-*`, `title`, `tabIndex`, * `slot`, `onMouseEnter`, and the rest. Own props always win over a * same-named DOM attribute. */ export type MessageTimelineProps = MessageTimelineOwnProps & Omit, keyof MessageTimelineOwnProps | 'children' | 'dangerouslySetInnerHTML'>; export declare const MessageTimeline: React.ForwardRefExoticComponent, "children" | "dangerouslySetInnerHTML" | keyof MessageTimelineOwnProps> & React.RefAttributes>;