/** @license MIT License (c) copyright 2010-2017 original author or authors */ /// import { DeferrableTask } from './task'; import { Clock, Time, Timer } from '@most/types'; export default class ClockTimer implements Timer { private _clock; constructor(clock: Clock); now(): Time; setTimer(f: () => A, dt: Time): NodeJS.Timeout | Asap; clearTimer(t: number | Asap): void; } declare class Asap implements DeferrableTask { private readonly f; /** * @mutable */ active: boolean; constructor(f: () => A); run(): A | undefined; error(e: Error): never; cancel(): void; } export {};