import { UiElement } from '../shared/element.js'; import { type ProgressBarStatus } from '../../core/progress-bar.js'; export type { ProgressBarStatus } from '../../core/progress-bar.js'; export type ProgressBarType = 'default' | 'inline' | 'indented'; /** `md` is Carbon's `big` (8px track), `sm` its `small` (4px). */ export type ProgressBarSize = 'sm' | 'md'; /** * Carbon `ProgressBar`: a labelled track that fills to `value / max`, or sweeps when `value` * is unset (indeterminate). `status="finished"` fills it green with a check mark, * `status="error"` empties it and turns label icon, bar and helper text red. * `type="inline"` puts label and track on one line (helper text is read by screen readers * only); `type="indented"` indents label and helper text by 16px to line up with * indented content. * * The track is the `progressbar`: `aria-valuemin/max/now` when determinate, `aria-busy` * until finished, named by the label (with "Error" for screen readers on error) and described by the helper text. * * @csspart base - The wrapper * @csspart label - Label row (text + status icon) * @csspart track - The `progressbar` element * @cssprop --ui-progress-track - The track's fill (default `--ui-surface-1`; Kanok: a hairline grey); `--ui-progress-radius` its corners (default square; Kanok: round) * @csspart bar - The filled portion * @csspart helper-text - Helper text below the track */ export declare class UiProgressBar extends UiElement { static readonly styles: import("lit").CSSResult[]; /** Required. What is progressing; shown above (or beside) the track and read as the bar's name. */ label: string; /** Visually hides the label (it still names the bar). */ hideLabel: boolean; helperText: string; /** Current progress; leave unset for an indeterminate bar. */ value?: number; max: number; size: ProgressBarSize; status: ProgressBarStatus; type: ProgressBarType; private readonly ids; private readonly localize; render(): import("lit-html").TemplateResult<1>; } declare global { interface HTMLElementTagNameMap { 'ui-progress-bar': UiProgressBar; } }