/** * Maps 0–100 progress to a sub-range of a parent progress handler. * Supports nesting: a ScopedProgress can wrap another ScopedProgress. */ export class ScopedProgress { /** * @param {((pct: number) => void) | undefined} onProgress * @param {number} start - Start of the mapped range (0–100) * @param {number} end - End of the mapped range (0–100) */ constructor(onProgress: ((pct: number) => void) | undefined, start: number, end: number); _onProgress: (pct: number) => void; _start: number; _end: number; callback: any; /** @param {number} pct - Progress 0–100 within this scope */ report(pct: number): void; }