/** * Copyright (c) 2017 mol* contributors, licensed under MIT, See LICENSE file for more info. * * @author David Sehnal */ import { Task } from '../task.js'; interface Progress { root: Progress.Node; canAbort: boolean; requestAbort: (reason?: string) => void; } declare namespace Progress { interface Node { readonly progress: Task.Progress; readonly children: ReadonlyArray; } interface Observer { (progress: Progress): void; } function format(p: Progress): string; } export { Progress };