/** * TimedEvent is a lightweight timer-like class that emits lifecycle events * and progress notifications. It supports starting, pausing, resuming, * cancelling and one-shot or duration-based progress tracking. * * Events dispatched (CustomEvent with detail.timer = this): * - START, PROGRESS, PAUSE, RESUME, COMPLETE, CANCEL * * duration is in milliseconds. Use -1 for an infinite/looping timer. */ export default class TimedEvent extends EventTarget { duration: number; elapsedTime: number; started: boolean; paused: boolean; cancelled: boolean; nextTick: number | ReturnType | null; lastTick: number; milestones: Set; constructor(duration?: number); start(): void; pause(): void; resume(): void; cancel(): void; atPercent(percent: number, context?: string): boolean; atProgress(time: number, context?: string): boolean; atRemaining(time: number, context?: string): boolean; protected forceTick(): void; protected tick(): void; protected cancelNextTick(): void; makeEvent(name: string): CustomEvent; } //# sourceMappingURL=timedEvent.d.ts.map