import { FnPeriodicallyNamespace as T } from './type'; export declare enum OperationStateEnum { STOP = 0, RUN = 1 } export declare class FnPeriodically { private fn; private timer; private delay; private state; private immediate; private arg; private isUnmountStop; constructor(option: T.ConstructorOption); /** * 循环运行函数 * @param params * @private */ private loopRun; /** * 手动运行函数,循环周期的起点 * @param immediate * @param arg */ private runId; /** * 手动运行函数,循环周期的起点 * @param immediate 是否立即执行 缺省值 true * @param arg */ run(immediate?: boolean, arg?: any[]): void; /** * 停止周期执行 */ stop(): void; /** * 设置间隔时间 * @param delay */ setDelay(delay: number): void; }