import * as _angular_core from '@angular/core'; import { Signal, WritableSignal } from '@angular/core'; import { NumberInput } from '@angular/cdk/coercion'; import * as ng_primitives_state from 'ng-primitives/state'; /** * Apply the `ngpProgressIndicator` directive to an element that represents the current progress. * The width of this element can be set to the percentage of the progress value. */ declare class NgpProgressIndicator { constructor(); static ɵfac: _angular_core.ɵɵFactoryDeclaration; static ɵdir: _angular_core.ɵɵDirectiveDeclaration; } interface NgpProgressIndicatorProps { } declare const NgpProgressIndicatorStateToken: _angular_core.InjectionToken<_angular_core.WritableSignal<{}>>; declare const ngpProgressIndicator: ({}: NgpProgressIndicatorProps) => {}; declare class NgpProgressLabel { /** * The unique identifier for the progress label. */ readonly id: _angular_core.InputSignal; constructor(); static ɵfac: _angular_core.ɵɵFactoryDeclaration; static ɵdir: _angular_core.ɵɵDirectiveDeclaration; } interface NgpProgressLabelProps { /** * The unique identifier for the progress label. */ readonly id?: Signal; } declare const NgpProgressLabelStateToken: _angular_core.InjectionToken<_angular_core.WritableSignal<{}>>; declare const ngpProgressLabel: ({ id }: NgpProgressLabelProps) => {}; declare class NgpProgressTrack { constructor(); static ɵfac: _angular_core.ɵɵFactoryDeclaration; static ɵdir: _angular_core.ɵɵDirectiveDeclaration; } interface NgpProgressTrackProps { } declare const NgpProgressTrackStateToken: _angular_core.InjectionToken<_angular_core.WritableSignal<{}>>; declare const ngpProgressTrack: ({}: NgpProgressTrackProps) => {}; declare class NgpProgressValue { constructor(); static ɵfac: _angular_core.ɵɵFactoryDeclaration; static ɵdir: _angular_core.ɵɵDirectiveDeclaration; } interface NgpProgressValueProps { } declare const NgpProgressValueStateToken: _angular_core.InjectionToken<_angular_core.WritableSignal<{}>>; declare const ngpProgressValue: ({}: NgpProgressValueProps) => {}; /** * Apply the `ngpProgress` directive to an element that represents the progress bar. */ declare class NgpProgress { /** * Define the progress value. */ readonly value: _angular_core.InputSignalWithTransform; /** * Define the progress min value. * @default '0' */ readonly min: _angular_core.InputSignalWithTransform; /** * Define the progress max value. * @default 100 */ readonly max: _angular_core.InputSignalWithTransform; /** * Define a function that returns the progress 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 unique identifier for the progress. */ readonly id: _angular_core.InputSignal; /** * The state of the progress bar. * @internal */ private readonly state; /** * Get the progress value text. */ protected readonly valueText: _angular_core.Signal; static ɵfac: _angular_core.ɵɵFactoryDeclaration; static ɵdir: _angular_core.ɵɵDirectiveDeclaration; } type NgpProgressValueTextFn = (value: number, max: number, min: number) => string; interface NgpProgressProps { /** * The unique identifier for the progress. */ readonly id?: Signal; /** * Define the progress value. */ readonly value?: Signal; /** * Define the progress min value. * @default '0' */ readonly min?: Signal; /** * Define the progress max value. * @default 100 */ readonly max?: Signal; /** * Define a function that returns the progress value label. * @param value The current value * @param max The maximum value * @returns The value label */ readonly valueLabel?: Signal; } interface NgpProgressState { /** * The unique identifier for the progress. */ readonly id: Signal; /** * Define the progress value. */ readonly value: WritableSignal; /** * Define the progress min value. * @default '0' */ readonly min: WritableSignal; /** * Define the progress max value. * @default 100 */ readonly max: WritableSignal; /** * Get the progress value text. An empty string while the progress is * indeterminate (the `aria-valuetext` attribute is omitted in that case). */ readonly valueText: Signal; /** * The id of label associated with the progress bar. * @internal */ readonly labelId: Signal; /** * Determine if the progress is indeterminate. * @internal */ readonly indeterminate: Signal; /** * Determine if the progress is in a progressing state. * @internal */ readonly progressing: Signal; /** * Determine if the progress is complete. * @internal */ readonly complete: Signal; /** * Set the label of the progress bar. */ setLabel(id: string): void; /** * Remove the label of the progress bar. */ removeLabel(id: string): void; /** * Set the value of the progress bar. * @param value The progress value */ setValue(value: number | null): void; /** * Set the minimum value of the progress bar. * @param min The minimum value */ setMin(min: number): void; /** * Set the maximum value of the progress bar. * @param max The maximum value */ setMax(max: number): void; } declare const ngpProgress: ({ valueLabel: _valueLabel, value: _value, min: _min, max: _max, id, }: NgpProgressProps) => { max: WritableSignal; min: WritableSignal; value: WritableSignal; labelId: WritableSignal; valueText: Signal; id: Signal; indeterminate: Signal; progressing: Signal; complete: Signal; setLabel: (id: string) => void; removeLabel: (id: string) => void; setValue: (newValue: number | null) => void; setMin: (newMin: number) => void; setMax: (newMax: number) => void; }; declare const injectProgressState: { (): Signal<{ max: WritableSignal; min: WritableSignal; value: WritableSignal; labelId: WritableSignal; valueText: Signal; id: Signal; indeterminate: Signal; progressing: Signal; complete: Signal; setLabel: (id: string) => void; removeLabel: (id: string) => void; setValue: (newValue: number | null) => void; setMin: (newMin: number) => void; setMax: (newMax: number) => void; }>; (options: ng_primitives_state.StateInjectionOptions): Signal<{ max: WritableSignal; min: WritableSignal; value: WritableSignal; labelId: WritableSignal; valueText: Signal; id: Signal; indeterminate: Signal; progressing: Signal; complete: Signal; setLabel: (id: string) => void; removeLabel: (id: string) => void; setValue: (newValue: number | null) => void; setMin: (newMin: number) => void; setMax: (newMax: number) => void; } | null>; (options?: ng_primitives_state.StateInjectionOptions): Signal<{ max: WritableSignal; min: WritableSignal; value: WritableSignal; labelId: WritableSignal; valueText: Signal; id: Signal; indeterminate: Signal; progressing: Signal; complete: Signal; setLabel: (id: string) => void; removeLabel: (id: string) => void; setValue: (newValue: number | null) => void; setMin: (newMin: number) => void; setMax: (newMax: number) => void; }> | Signal<{ max: WritableSignal; min: WritableSignal; value: WritableSignal; labelId: WritableSignal; valueText: Signal; id: Signal; indeterminate: Signal; progressing: Signal; complete: Signal; setLabel: (id: string) => void; removeLabel: (id: string) => void; setValue: (newValue: number | null) => void; setMin: (newMin: number) => void; setMax: (newMax: number) => void; } | null>; }; declare const provideProgressState: (opts?: { inherit?: boolean; }) => _angular_core.FactoryProvider; export { NgpProgress, NgpProgressIndicator, NgpProgressIndicatorStateToken, NgpProgressLabel, NgpProgressLabelStateToken, NgpProgressTrack, NgpProgressTrackStateToken, NgpProgressValue, NgpProgressValueStateToken, injectProgressState, ngpProgress, ngpProgressIndicator, ngpProgressLabel, ngpProgressTrack, ngpProgressValue, provideProgressState }; export type { NgpProgressProps, NgpProgressState, NgpProgressValueTextFn };