export default function timeout(shouldContinueAfterTimeout: () => boolean, cb: () => void, timeoutMs?: number): () => void;