import { Platform } from '@angular/cdk/platform'; import { ElementRef, InjectionToken } from '@angular/core'; /** Possible mode for a progress spinner. */ export declare type ProgressSpinnerMode = 'determinate' | 'indeterminate'; /** @docs-private */ export declare class VdlProgressSpinnerBase { _elementRef: ElementRef; constructor(_elementRef: ElementRef); } export declare const _VdlProgressSpinnerMixinBase: typeof VdlProgressSpinnerBase; /** Default `vdl-progress-spinner` options that can be overridden. */ export interface VdlProgressSpinnerDefaultOptions { /** Diameter of the spinner. */ diameter?: number; /** Width of the spinner's stroke. */ strokeWidth?: number; /** * Whether the animations should be force to be enabled, ignoring if the current environment is * using NoopAnimationsModule. */ _forceAnimations?: boolean; } /** Injection token to be used to override the default options for `vdl-progress-spinner`. */ export declare const VDL_PROGRESS_SPINNER_DEFAULT_OPTIONS: InjectionToken; /** @docs-private */ export declare function VDL_PROGRESS_SPINNER_DEFAULT_OPTIONS_FACTORY(): VdlProgressSpinnerDefaultOptions; /** * `` component. */ export declare class VdlProgressSpinner extends _VdlProgressSpinnerMixinBase { _elementRef: ElementRef; private _document; private animationMode; private defaults; private _value; private _strokeWidth; private _fallbackAnimation; /** Tracks diameters of existing instances to de-dupe generated styles (default d = 100) */ private static diameters; /** * Used for storing all of the generated keyframe animations. * @dynamic */ private static styleTag; /** Whether the _vdl-animation-noopable class should be applied, disabling animations. */ _noopAnimations: boolean; /** The Color of the spinner. Default: $ui-blue-40 */ spinnerColor: string; /** The Color of the dynamic track on top of the spinner. Default: $ui-blue-10 */ trackColor: string; /** The diameter of the progress spinner (will set width and height of svg). */ diameter: number; private _diameter; /** Stroke width of the progress spinner. */ strokeWidth: number; /** Mode of the progress circle, values are 'determinate' or 'indeterminate'. Default is 'determinate' */ mode: ProgressSpinnerMode; /** Position of the label for the spinner. */ labelPosition: string; /** Value of the progress circle. */ value: number; constructor(_elementRef: ElementRef, platform: Platform, _document: any, animationMode?: string, defaults?: VdlProgressSpinnerDefaultOptions); /** The radius of the spinner, adjusted for stroke width. */ readonly _circleRadius: number; /** The view box of the spinner's svg element. */ readonly _viewBox: string; /** The stroke circumference of the svg circle. */ readonly _strokeCircumference: number; /** The dash offset of the svg circle. */ readonly _strokeDashOffset: number; /** Stroke width of the circle in percent. */ readonly _circleStrokeWidth: number; /** Dynamically generates a style tag containing the correct animation for this diameter. */ private _attachStyleNode(); /** Generates animation styles adjusted for the spinner's diameter. */ private _getAnimationText(); } /** * `` component. * * This is a component definition to be used as a convenience reference to create an * indeterminate `` instance. */ export declare class VdlSpinner extends VdlProgressSpinner { constructor(elementRef: ElementRef, platform: Platform, document: any, animationMode?: string, defaults?: VdlProgressSpinnerDefaultOptions); }