import { r as SummaryStrings } from "./summary-D8UEQXYr.js"; import { n as Format } from "./format-Dq02z5ZL.js"; import { CSSProperties, ReactNode } from "react"; //#region src/core/strings-eta-bar.d.ts type EtaBarStrings = Pick; //#endregion //#region src/charts/eta-bar/index.d.ts interface EtaBarProps { /** Completed fraction 0–1. */ progress: number; /** Time spent, any consistent unit. */ elapsed: number; /** Progress-per-time-unit; pass a recent-window rate for the honest forecast. */ rate?: number | undefined; /** `"eta"` (the product) · `"percent"` · `"none"`. */ label?: "eta" | "percent" | "none" | undefined; /** Unit-bearing ETA label ("2 min") — the caller owns units. */ etaFormat?: ((t: number) => string) | undefined; width?: number | undefined; height?: number | undefined; format?: Format | undefined; locale?: string | string[] | undefined; strings?: EtaBarStrings | undefined; /** Minimum in-chart label size, in viewBox units. Geometry sizes labels from * the mark and floors them at 7; this raises that floor and moves the * reserved gutter with it. A label the box cannot seat at the raised floor * drops rather than shrinking back under it. */ labelSize?: number | undefined; title?: string | undefined; summary?: string | false | undefined; id?: string | undefined; className?: string | undefined; style?: CSSProperties | undefined; children?: ReactNode | undefined; } /** Shared summary — the remainder is always hedged with "at the current rate". */ declare function etaBarSummary(opts: { progress: number; elapsed: number; rate: number | null; etaFormat?: ((t: number) => string) | undefined; fmt: (n: number) => string; /** Locale for the percent (`format` belongs to the ETA number, not to it). */ locale?: string | string[] | undefined; }, strings: EtaBarStrings): string; declare function EtaBar(props: EtaBarProps): ReactNode; //#endregion export { EtaBarProps as n, etaBarSummary as r, EtaBar as t };