import { FrameCounter } from './FrameCounter'; /** * (To be filled) */ export declare abstract class TimedFrameCounter extends FrameCounter { /** * Function that will be called when the cycle has been completed. */ completeBehavior: () => any; /** * True if this counter is activated. */ readonly isOn: boolean; protected durationFrameCount: number; protected _isOn: boolean; /** * * @param durationFrameCount * @param completeBehavior */ constructor(durationFrameCount: number, completeBehavior?: () => any); /** * Activate this counter. * @param duration * @chainable */ on(duration?: number): TimedFrameCounter; /** * Deactivate this counter. * @chainable */ off(): TimedFrameCounter; /** * @override */ step(): void; /** * Returns the progress ratio within the cycle. */ abstract getProgressRatio(): number; protected abstract completeCycle(): void; }