Initial Commit

This commit is contained in:
2026-01-15 21:52:12 +01:00
committed by erik
parent 3ed42cdeb6
commit 5a70f775f1
6702 changed files with 1389544 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
/// <reference types="node" />
import { Transform } from "stream";
import { CancellationToken } from "./CancellationToken";
export interface ProgressInfo {
total: number;
delta: number;
transferred: number;
percent: number;
bytesPerSecond: number;
}
export declare class ProgressCallbackTransform extends Transform {
private readonly total;
private readonly cancellationToken;
private readonly onProgress;
private start;
private transferred;
private delta;
private nextUpdate;
constructor(total: number, cancellationToken: CancellationToken, onProgress: (info: ProgressInfo) => any);
_transform(chunk: any, encoding: string, callback: any): void;
_flush(callback: any): void;
}