declare type options = { next: (t: number) => void; onComplete?: () => void; step?: number; }; export declare function timer(timeout: number, { step, ...opt }: options): () => void; export {};