import { type ReactNode } from 'react'; import type { AIReasoningPart } from '../MessageParts/types'; /** * Splits reasoning at blank lines. Reasoning only grows at its end, so a paragraph's position * is a stable identity. */ export declare const splitReasoningParagraphs: (text: string) => string[]; export type AIReasoningProps = { className?: string; /** How long the model has thought, in seconds, shown as "Thought for 12s" once it is done. */ duration?: number; /** A note under the open reasoning, such as how long it is kept. */ footnote?: ReactNode; /** Whether the reasoning is open once the model is done. Defaults to `false`. */ initiallyExpanded?: boolean; /** Whether the model is still thinking. Defaults to whether `part` is streaming. */ isThinking?: boolean; /** How tall the reasoning grows, in pixels, before it scrolls. Defaults to 260. */ maxExpandedHeight?: number; /** A reasoning step, whose preview, summary, status and duration it shows. */ part?: AIReasoningPart; /** * The whole of a reasoning step's thinking when the app has it, such as from live updates. * Read on every render; without it, the step shows its own preview. */ reasoningText?: (stepId: string) => string | undefined; /** Whether the reasoning is open while the model thinks. Defaults to `true`. */ showsLiveReasoning?: boolean; /** When the thinking began (`Date.now()`), for a header that counts from before it appeared. */ since?: number; /** A one-line summary shown beside the header once the model is done. */ summary?: string; /** * The reasoning so far. Blank lines separate paragraphs, and Markdown is rendered. Defaults to * `reasoningText(part.id)`, else the step's preview or summary. */ text?: string; }; /** * A round of the model's reasoning: a header that counts the seconds while it thinks ("Thinking… * 7s") and says how long it thought once done ("Thought for 12s"), over the reasoning itself, * which streams into view while the model thinks and folds away when it is done. Clicking the * header opens or folds it. The counterpart of `StreamingReasoningView`. * * Inside an `AIConversation` that showed the agent thinking, the reply's first reasoning step * takes over that thinking: its seconds count from when the question was asked. */ export declare const AIReasoning: ({ className, duration: durationProp, footnote, initiallyExpanded, isThinking: isThinkingProp, maxExpandedHeight, part, reasoningText, showsLiveReasoning, since, summary: summaryProp, text: textProp, }: AIReasoningProps) => import("react/jsx-runtime").JSX.Element; export type AIThinkingProps = { className?: string; /** When the thinking began (`Date.now()`). Inside an `AIConversation`, when the question was asked. */ since?: number; }; /** * The agent thinking before its reply shows anything: a header that counts the seconds. In an * `AIConversation`, the reply's first reasoning step takes over its seconds. The counterpart of * `AIThinkingView`. */ export declare const AIThinking: ({ className, since }: AIThinkingProps) => import("react/jsx-runtime").JSX.Element; //# sourceMappingURL=AIReasoning.d.ts.map