import { AriaLabelingProps, DOMProps, GlobalDOMAttributes } from '@react-types/shared'; import { DisclosurePanelProps as RACDisclosurePanelProps, DisclosureProps as RACDisclosureProps } from 'react-aria-components/Disclosure'; import React, { ReactNode } from 'react'; import { StyleString } from '@react-spectrum/s2/style'; export interface ResponseStatusProps extends Omit { /** * The current status of the response. * * @default 'loading' */ status?: 'loading' | 'failed' | 'success'; /** * The contents of the response status, consisting of a ResponseStatusTitle and * ResponseStatusPanel. */ children: ReactNode; /** * Spectrum-defined styles, returned by the `style()` macro. */ styles?: StyleString; } /** * A ResponseStatus indicates the progress of a system response while it is being generated and when * it is complete. If a ResponseStatusPanel is provided, the title can be pressed to expand and * collapse it. */ export declare const ResponseStatus: React.ForwardRefExoticComponent>>; export interface ResponseStatusTitleProps extends DOMProps { /** * The heading level of the response status header. * * @default 3 */ level?: number; /** The contents of the response status header. */ children: React.ReactNode; /** * Spectrum-defined styles, returned by the `style()` macro. */ styles?: StyleString; } /** * A response status title consisting of a heading and a trigger button. The leading icon is a * progress circle while loading and a chevron once complete and there is further content to * display. */ export declare const ResponseStatusTitle: React.ForwardRefExoticComponent>>; export interface ResponseStatusPanelProps extends Omit, DOMProps, AriaLabelingProps { children: React.ReactNode; /** * Spectrum-defined styles, returned by the `style()` macro. */ styles?: StyleString; } /** * A response status panel is a collapsible section of content that is hidden until the * response status is expanded. The panel cannot be expanded while `status` is `'loading'`. */ export declare const ResponseStatusPanel: React.ForwardRefExoticComponent>>; export interface ExecutionTraceProps extends DOMProps, AriaLabelingProps { /** * The ExecutionTraceItem elements to render as a timeline. Typically placed inside a * ResponseStatusPanel. */ children: ReactNode; /** * Spectrum-defined styles, returned by the `style()` macro. */ styles?: StyleString; } /** * An ExecutionTrace displays a timeline of the steps taken while generating a * response, such as tool calls or searches. */ export declare const ExecutionTrace: React.ForwardRefExoticComponent>>; export interface ExecutionTraceItemProps extends DOMProps, AriaLabelingProps { /** * The label describing the step. */ children: ReactNode; detail?: ReactNode; /** * Spectrum-defined styles, returned by the `style()` macro. */ /** * An icon shown at the leading edge of the row. If omitted, a checkmark is rendered by default. */ icon?: ReactNode; /** Allows detail content to render but prevents the row from being collapsible. */ isAlwaysOpen?: boolean; /** * Additional detail revealed when the step is expanded, such as tool call input or output. * If omitted, the row is static and cannot be expanded. */ styles?: StyleString; } /** * An ExecutionTraceItem represents a single step within an ExecutionTrace, such as * a tool call or search. When a `detail` is provided, the row can be expanded to reveal it. */ export declare const ExecutionTraceItem: React.ForwardRefExoticComponent>>;