import * as React from 'react'; import { View } from 'react-native'; import type { ZestUIComponentProps } from '../../types'; /** * Groups all parts of the progress bar and provides the task completion status * to screen readers. * Renders a ``. * * **Not ported from upstream.** The visually-hidden `` holding an `x`: * it is a workaround for NVDA not reading the label, and NVDA is a Windows * screen reader. */ export declare function ProgressRoot(componentProps: ProgressRoot.Props): React.JSX.Element; export type ProgressStatus = 'indeterminate' | 'progressing' | 'complete'; export interface ProgressRootState { /** * The current status. */ status: ProgressStatus; /** * The current value, clamped into `[min, max]`, or `null` while indeterminate. */ value: number | null; /** * The minimum value. */ min: number; /** * The maximum value. */ max: number; /** * How far the value sits through the range, `0`–`100`, or `null` while * indeterminate. This is what an indicator's width comes from. */ percent: number | null; /** * The value as text, through `format`/`locale`. Empty while indeterminate. */ formattedValue: string; } export interface ProgressRootProps extends ZestUIComponentProps { /** * The current value. The component is indeterminate when value is `null`. */ value: number | null; /** * The minimum value. * @default 0 */ min?: number | undefined; /** * The maximum value. * @default 100 */ max?: number | undefined; /** * Options to format the value. */ format?: Intl.NumberFormatOptions | undefined; /** * The locale used by `Intl.NumberFormat` when formatting the value. * Defaults to the user's runtime locale. */ locale?: Intl.LocalesArgument | undefined; /** * Returns a human-readable text alternative for the current value, announced * by assistive technology. * * Renamed from upstream's `getAriaValueText`: on React Native this feeds * `accessibilityValue.text`, not `aria-valuetext`. */ getAccessibilityValueText?: ((formattedValue: string | null, value: number | null) => string) | undefined; } export declare namespace ProgressRoot { type State = ProgressRootState; type Props = ProgressRootProps; type Status = ProgressStatus; } //# sourceMappingURL=ProgressRoot.d.ts.map