/** * `ProgressBar` — a design-system, accessible progress indicator for a running * tool that reports progress (`ctx.report_progress`). Determinate when a * positive `total` is known (fills to `value/total`); otherwise indeterminate. * * The track and fill are classes; only the determinate fill's WIDTH stays inline, * because it is the one genuinely per-instance value here. The indeterminate * sweep is `tai-progress-fill-indeterminate`. * * Reusable by any feature's run surface — it takes only the raw * progress/total/message a `report_progress` notification carries and renders * a native `role="progressbar"` element with the ARIA value fields set. */ import type { ReactNode } from 'react'; export interface ProgressBarProps { /** Current progress. Clamped to `[0, total]` when `total` is known. */ readonly value?: number; /** Upper bound. When absent or non-positive the bar is INDETERMINATE. */ readonly total?: number; /** Optional human-readable status shown alongside the bar. */ readonly message?: string; } /** * Render a progress bar. With a positive `total`, `value/total` fills the track * and the percentage is announced via `aria-valuenow`; without one, the bar is * indeterminate (no `aria-valuenow`, per ARIA). */ export declare function ProgressBar({ value, total, message }: ProgressBarProps): ReactNode; //# sourceMappingURL=progress-bar.d.ts.map