/** * 说明 */ type PollerTask = (poller: Poller) => void | Promise; interface PollerOptions { delay: number; } declare class Poller { private count; private task; private options; private currentCount; get isRunning(): boolean; constructor(task: PollerTask, options?: Partial); private run; stop(): this; start(forceUpdate?: boolean): this; } export { Poller, type PollerOptions, type PollerTask };