import { LitElement, PropertyValues, nothing, TemplateResult, CSSResult } from 'lit'; declare global { interface HTMLElementTagNameMap { 'forge-ai-steps': AiStepsComponent; } } export declare const AiStepsComponentTagName: keyof HTMLElementTagNameMap; /** Lifecycle state of an individual step. */ export type AiStepStatus = 'pending' | 'running' | 'complete'; /** * A single step in the timeline. Every field is supplied by the agent — the component derives no * labels of its own and makes no assumption about how the agent names its work. */ export interface AiStep { /** * Agent-provided label for the step, e.g. `'Filtered by \`crime_category\`'`. Rendered as inline * markdown, so the agent decides which part of its own label to emphasize. Literal `*`, `_` and * `` ` `` characters need escaping. */ label: string; /** * Optional agent-provided elaboration, rendered as a detail card beneath the label. Also rendered * as inline markdown. */ detail?: string; /** Lifecycle state of this step. Defaults to `'complete'` when omitted. */ status?: AiStepStatus; } /** * @tag forge-ai-steps * * @summary Expandable timeline summarizing the steps an agent took while producing a response. * * @description * Collapsed, it shows a step count and a summary of the first couple of step labels. When expanded, * it lists each step as a row in a vertical timeline along with its status. Steps carrying a * `detail` render as detail cards; steps without one render as a simple labeled row. * * Labels and details are rendered as sanitized inline markdown, so the agent controls its own * emphasis — bold, italic, strikethrough, `code` and links — rather than the component or the * consumer prescribing which part of a step matters. * * This is a presentational primitive: it renders whatever `steps` it is given and knows nothing * about tool calls or tool definitions. `forge-ai-tool-steps` is the tool renderer that maps an * agent's `displaySteps` tool call onto these properties. * * While `running` is `true` the timeline stays expanded and the summary row is hidden. When * `running` flips back to `false` the timeline auto-collapses, leaving the summary row as the way * back in. An element that mounts with `running` already `false` renders expanded, so static usage * (a finished run, or a Storybook story) is readable without interaction. * * @property {AiStep[]} steps - The steps to render as timeline rows * @property {boolean} running - Whether the run producing these steps is still in progress */ export declare class AiStepsComponent extends LitElement { #private; static styles: CSSResult; steps: AiStep[]; /** * Whether the run producing these steps is still in progress. While `true` the timeline is held * open and the summary row is hidden; the transition back to `false` collapses the timeline. */ running: boolean; private _expanded; willUpdate(changedProperties: PropertyValues): void; render(): TemplateResult | typeof nothing; }