export declare type RunFunction = () => Promise; export interface Queue { size: number; filter(options: Partial): Element[]; dequeue(): Element | undefined; enqueue(run: Element, options?: Partial): void; }