UNPKG

746 BTypeScriptView Raw
1import { Platform } from './platform';
2/**
3 * @hidden
4 */
5export declare class DomDebouncer {
6 private dom;
7 private writeTask;
8 private readTask;
9 constructor(dom: DomController);
10 read(fn: DomCallback): Function;
11 write(fn: DomCallback): Function;
12 cancel(): void;
13}
14/**
15 * @hidden
16 */
17export declare class DomController {
18 plt: Platform;
19 private r;
20 private w;
21 private q;
22 constructor(plt: Platform);
23 debouncer(): DomDebouncer;
24 read(fn: DomCallback, timeout?: number): any;
25 write(fn: DomCallback, timeout?: number): any;
26 cancel(fn: any): void;
27 private _queue();
28 private _flush(timeStamp);
29}
30/**
31 * @hidden
32 */
33export declare type DomCallback = {
34 (timeStamp?: number): void;
35};