import { ModuleWithProviders, ChangeDetectorRef, OnDestroy, ElementRef, NgZone } from '@angular/core'; export declare type ProgressSpinnerMode = 'determinate' | 'indeterminate'; /** * component. */ export declare class MdProgressSpinner implements OnDestroy { private _changeDetectorRef; private _ngZone; private _elementRef; /** The id of the last requested animation. */ private _lastAnimationId; /** The id of the indeterminate interval. */ private _interdeterminateInterval; /** The SVG node that is used to draw the circle. */ private _path; /** * Values for aria max and min are only defined as numbers when in a determinate mode. We do this * because voiceover does not report the progress indicator as indeterminate if the aria min * and/or max value are number values. */ readonly _ariaValueMin: number; readonly _ariaValueMax: number; /** @docs-private */ /** @docs-private */ interdeterminateInterval: number; /** * Clean up any animations that were running. */ ngOnDestroy(): void; /** Value of the progress circle. It is bound to the host as the attribute aria-valuenow. */ private _value; value: number; /** * Mode of the progress circle * * Input must be one of the values from ProgressMode, defaults to 'determinate'. * mode is bound to the host as the attribute host. */ mode: ProgressSpinnerMode; private _mode; color: 'primary' | 'accent' | 'warn'; constructor(_changeDetectorRef: ChangeDetectorRef, _ngZone: NgZone, _elementRef: ElementRef); /** * Animates the circle from one percentage value to another. * * @param animateFrom The percentage of the circle filled starting the animation. * @param animateTo The percentage of the circle filled ending the animation. * @param ease The easing function to manage the pace of change in the animation. * @param duration The length of time to show the animation, in milliseconds. * @param rotation The starting angle of the circle fill, with 0° represented at the top center * of the circle. */ private _animateCircle(animateFrom, animateTo, ease, duration, rotation); /** * Starts the indeterminate animation interval, if it is not already running. */ private _startIndeterminateAnimation(); /** * Removes interval, ending the animation. */ private _cleanupIndeterminateAnimation(); /** * Renders the arc onto the SVG element. Proxies `getArc` while setting the proper * DOM attribute on the ``. */ private _renderArc(currentValue, rotation); } /** * component. * * This is a component definition to be used as a convenience reference to create an * indeterminate instance. */ export declare class MdSpinner extends MdProgressSpinner implements OnDestroy { constructor(changeDetectorRef: ChangeDetectorRef, elementRef: ElementRef, ngZone: NgZone); ngOnDestroy(): void; } export declare class MdProgressSpinnerModule { static forRoot(): ModuleWithProviders; }