import * as _angular_core from '@angular/core'; /** * @license * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE */ /** One segment of a {@link WrMeterGroup}. */ interface WrMeterSegment { /** Label shown in the legend. */ readonly label: string; /** Magnitude — interpreted as a portion of the sum of all segments. */ readonly value: number; /** CSS color for the bar slice and legend swatch. Defaults to `--wr-color-primary` etc. */ readonly color?: string; } /** * Stacked-segment progress bar. Visualises a breakdown of a total — * disk usage, budget, vote share, etc. Each segment contributes a slice * proportional to its `value` relative to the sum (or the explicit `max`). * * @example * ```html * * ``` * * @see https://ngwr.dev/components/meter-group */ declare class WrMeterGroup { readonly segments: _angular_core.InputSignal; /** Explicit total. When `0` (default), `max = sum(values)`. @default 0 */ readonly max: _angular_core.InputSignalWithTransform; /** Show the labelled legend under the bar. @default true */ readonly showLegend: _angular_core.InputSignalWithTransform; /** Show each segment's percent value in the legend. @default true */ readonly showValues: _angular_core.InputSignalWithTransform; protected readonly resolvedMax: _angular_core.Signal; protected readonly slices: _angular_core.Signal<{ label: string; value: number; color: string; percent: number; }[]>; static ɵfac: _angular_core.ɵɵFactoryDeclaration; static ɵcmp: _angular_core.ɵɵComponentDeclaration; } export { WrMeterGroup }; export type { WrMeterSegment };