import { Subscription } from './Subscription'; import { Action } from './scheduler/Action'; export interface Scheduler { now(): number; schedule(work: (state?: any) => Subscription | void, delay?: number, state?: any): Subscription; flush(): void; active: boolean; actions: Action[]; scheduledId: number; }