import * as _angular_core from '@angular/core'; import { Signal } from '@angular/core'; import { NumberInput } from '@angular/cdk/coercion'; import * as ng_primitives_state from 'ng-primitives/state'; declare class NgpMeter { /** The value of the meter. */ readonly value: _angular_core.InputSignalWithTransform; /** The minimum value of the meter. */ readonly min: _angular_core.InputSignalWithTransform; /** The maximum value of the meter. */ readonly max: _angular_core.InputSignalWithTransform; /** * Define a function that returns the meter value label. * @param value The current value * @param max The maximum value * @param min The minimum value * @returns The value label */ readonly valueLabel: _angular_core.InputSignal; /** * The state of the meter. * @internal */ private readonly state; static ɵfac: _angular_core.ɵɵFactoryDeclaration; static ɵdir: _angular_core.ɵɵDirectiveDeclaration; } type NgpMeterValueTextFn = (value: number, max: number, min: number) => string; interface NgpMeterProps { /** * Define the meter value. * @default 0 */ readonly value?: Signal; /** * Define the meter min value. * @default 0 */ readonly min?: Signal; /** * Define the meter max value. * @default 100 */ readonly max?: Signal; /** * Define a function that returns the meter value label. * @param value The current value * @param max The maximum value * @param min The minimum value * @returns The value label */ readonly valueLabel?: Signal; } interface NgpMeterState { /** * Define the meter value. */ readonly value: Signal; /** * Define the meter min value. */ readonly min: Signal; /** * Define the meter max value. */ readonly max: Signal; /** * Register the id of the label associated with the meter. * @internal */ setLabel(id: string): void; /** * Remove the id of the label associated with the meter. * @internal */ removeLabel(id: string): void; } declare const ngpMeter: ({ value, min, max, valueLabel, }: NgpMeterProps) => NgpMeterState; declare const injectMeterState: { (): Signal; (options: ng_primitives_state.StateInjectionOptions): Signal; (options?: ng_primitives_state.StateInjectionOptions): Signal | Signal; }; declare const provideMeterState: (opts?: { inherit?: boolean; }) => _angular_core.FactoryProvider; declare class NgpMeterIndicator { constructor(); static ɵfac: _angular_core.ɵɵFactoryDeclaration; static ɵdir: _angular_core.ɵɵDirectiveDeclaration; } interface NgpMeterIndicatorProps { } declare const NgpMeterIndicatorStateToken: _angular_core.InjectionToken<_angular_core.WritableSignal<{}>>; declare const ngpMeterIndicator: ({}: NgpMeterIndicatorProps) => {}; declare class NgpMeterLabel { /** The id of the meter label */ readonly id: _angular_core.InputSignal; constructor(); static ɵfac: _angular_core.ɵɵFactoryDeclaration; static ɵdir: _angular_core.ɵɵDirectiveDeclaration; } interface NgpMeterLabelProps { /** * The unique identifier for the meter label. */ readonly id?: Signal; } declare const NgpMeterLabelStateToken: _angular_core.InjectionToken<_angular_core.WritableSignal<{}>>; declare const ngpMeterLabel: ({ id }: NgpMeterLabelProps) => {}; declare class NgpMeterTrack { static ɵfac: _angular_core.ɵɵFactoryDeclaration; static ɵdir: _angular_core.ɵɵDirectiveDeclaration; } declare class NgpMeterValue { constructor(); static ɵfac: _angular_core.ɵɵFactoryDeclaration; static ɵdir: _angular_core.ɵɵDirectiveDeclaration; } interface NgpMeterValueProps { } declare const NgpMeterValueStateToken: _angular_core.InjectionToken<_angular_core.WritableSignal<{}>>; declare const ngpMeterValue: ({}: NgpMeterValueProps) => {}; export { NgpMeter, NgpMeterIndicator, NgpMeterIndicatorStateToken, NgpMeterLabel, NgpMeterLabelStateToken, NgpMeterTrack, NgpMeterValue, NgpMeterValueStateToken, injectMeterState, ngpMeter, ngpMeterIndicator, ngpMeterLabel, ngpMeterValue, provideMeterState }; export type { NgpMeterProps, NgpMeterState, NgpMeterValueTextFn };