import { EventEmitter } from '../../stencil-public-runtime'; import { GritEventData } from '../../common/interfaces/event'; import { LINEAR_LOADER_MESSAGE, LINEAR_LOADER_TYPE } from '../../common/interfaces/ui'; export declare class GritLinearLoader { private maxHeight; private slotItems; private messageRef; private previousMessage; private animationTime; private currentMessageIndex; private progressIntervalInitialize; private progressIntervalFinish; private initialProgress; private timeoutData; get delay(): number; get duration(): number; get message(): any; host: HTMLGritWcLinearLoaderElement; currentMessage: string | HTMLGritWcLoaderMessageElement; hostStyle: { height: string; }; display: boolean; /** * Array of objects to handle the messages shown with the following properties * message: string - The message to be displayed * duration: number - The time the message will be displayed * delay: number - The delay before the next message will be shown */ loaderMessageProp: LINEAR_LOADER_MESSAGE[]; onDisplay(newVal: any): void; loaderMessageUpdated(newValue: LINEAR_LOADER_MESSAGE[], prevValue: LINEAR_LOADER_MESSAGE[]): void; /** * Changes the animation between a reoccurring loader to a once-occurring loader */ mode: LINEAR_LOADER_TYPE; /** * Value that is set as progress on determinate loader. */ progress: number; /** * Should the messages repeat once they reach the last value * set `repeat` to true. */ repeat: boolean; /** * Will emit an event update with the current progress value */ readonly update: EventEmitter>; componentDidLoad(): void; private getLoaderMessages; /** * Finish Method will execute loader hide animation and increment progress prop with a constant interval of time. */ finish(onFinish?: () => void): Promise; /** * Initialize Method will execute loader show animation and increment progress prop with a constant interval of time. * Method is also called on the components first load. */ initialize(): Promise; private animateInOut; /** * This function will increment progress prop until progress prop is equivalent to initialProgress. */ private loaderProgressIncrementInitialize; /** * This function will increment progress prop until it reaches 100 percent. * It will also emit event with the value. */ private loaderProgressIncrementFinish; /** * This function will determine message animation settings. */ private messageTimeTransition; /** * This function will set timeout delay to show the message. */ private showAfterDelay; private calculateAnimationDuration; private resetAnimations; render(): any; private animateOut; private animateIn; private renderLoaderMessage; private renderIndeterminateLoader; private renderDeterminateLoader; }