export type CollectionScheduler = { start: () => void; stop: () => void; }; export declare class PromiseBasedCollectionScheduler implements CollectionScheduler { private active; private readonly collectionIntervalInMs; private readonly collect; constructor(collectionIntervalInMs: number, collect: () => Promise); start(): Promise; stop(): void; }