type AddReturn = { remove: () => void; run: () => any; }; export function add(fn: () => void): AddReturn; export function runAll(): Promise; export function removeAll(): void; export function getSize(): number;