import * as i0 from '@angular/core'; import { InjectionToken, AfterViewInit, OnDestroy, ElementRef, EventEmitter } from '@angular/core'; import { T as ThemePalette } from '../palette.d-BSSFKjO6.js'; import { M as MatCommonModule } from '../common-module.d-C8xzHJDr.js'; import '@angular/cdk/bidi'; /** Last animation end data. */ interface ProgressAnimationEnd { value: number; } /** Default `mat-progress-bar` options that can be overridden. */ interface MatProgressBarDefaultOptions { /** * Default theme color of the progress bar. This API is supported in M2 themes only, * it has no effect in M3 themes. For color customization in M3, see https://material.angular.dev/components/progress-bar/styling. * * For information on applying color variants in M3, see * https://material.angular.dev/guide/material-2-theming#optional-add-backwards-compatibility-styles-for-color-variants */ color?: ThemePalette; /** Default mode of the progress bar. */ mode?: ProgressBarMode; } /** Injection token to be used to override the default options for `mat-progress-bar`. */ declare const MAT_PROGRESS_BAR_DEFAULT_OPTIONS: InjectionToken; /** * Injection token used to provide the current location to `MatProgressBar`. * Used to handle server-side rendering and to stub out during unit tests. * @docs-private */ declare const MAT_PROGRESS_BAR_LOCATION: InjectionToken; /** * Stubbed out location for `MatProgressBar`. * @docs-private */ interface MatProgressBarLocation { getPathname: () => string; } /** * @docs-private * @deprecated No longer used, will be removed. * @breaking-change 21.0.0 */ declare function MAT_PROGRESS_BAR_LOCATION_FACTORY(): MatProgressBarLocation; type ProgressBarMode = 'determinate' | 'indeterminate' | 'buffer' | 'query'; declare class MatProgressBar implements AfterViewInit, OnDestroy { readonly _elementRef: ElementRef; private _ngZone; private _changeDetectorRef; private _renderer; private _cleanupTransitionEnd; _animationMode?: "NoopAnimations" | "BrowserAnimations" | null | undefined; constructor(...args: unknown[]); /** Flag that indicates whether NoopAnimations mode is set to true. */ _isNoopAnimation: boolean; /** * Theme color of the progress bar. This API is supported in M2 themes only, it * has no effect in M3 themes. For color customization in M3, see https://material.angular.dev/components/progress-bar/styling. * * For information on applying color variants in M3, see * https://material.angular.dev/guide/material-2-theming#optional-add-backwards-compatibility-styles-for-color-variants */ get color(): string | null | undefined; set color(value: string | null | undefined); private _color; private _defaultColor; /** Value of the progress bar. Defaults to zero. Mirrored to aria-valuenow. */ get value(): number; set value(v: number); private _value; /** Buffer value of the progress bar. Defaults to zero. */ get bufferValue(): number; set bufferValue(v: number); private _bufferValue; /** * Event emitted when animation of the primary progress bar completes. This event will not * be emitted when animations are disabled, nor will it be emitted for modes with continuous * animations (indeterminate and query). */ readonly animationEnd: EventEmitter; /** * Mode of the progress bar. * * Input must be one of these values: determinate, indeterminate, buffer, query, defaults to * 'determinate'. * Mirrored to mode attribute. */ get mode(): ProgressBarMode; set mode(value: ProgressBarMode); private _mode; ngAfterViewInit(): void; ngOnDestroy(): void; /** Gets the transform style that should be applied to the primary bar. */ _getPrimaryBarTransform(): string; /** Gets the `flex-basis` value that should be applied to the buffer bar. */ _getBufferBarFlexBasis(): string; /** Returns whether the progress bar is indeterminate. */ _isIndeterminate(): boolean; /** Event handler for `transitionend` events. */ private _transitionendHandler; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; static ngAcceptInputType_value: unknown; static ngAcceptInputType_bufferValue: unknown; } declare class MatProgressBarModule { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; } export { MAT_PROGRESS_BAR_DEFAULT_OPTIONS, MAT_PROGRESS_BAR_LOCATION, MAT_PROGRESS_BAR_LOCATION_FACTORY, MatProgressBar, MatProgressBarModule }; export type { MatProgressBarDefaultOptions, MatProgressBarLocation, ProgressAnimationEnd, ProgressBarMode };