/// /// import { PassThrough } from 'stream'; import { StatsObject } from '../util'; export declare class PullTransfer extends PassThrough { private readonly stats; cancel(): boolean; write(chunk: Buffer, encoding?: BufferEncoding, cb?: (error: Error | null | undefined) => void): boolean; write(chunk: Buffer, cb?: (error: Error | null | undefined) => void): boolean; on(event: 'close', listener: () => void): this; on(event: 'data', listener: (chunk: unknown) => void): this; on(event: 'end', listener: () => void): this; on(event: 'error', listener: (err: Error) => void): this; on(event: 'pause', listener: () => void): this; on(event: 'readable', listener: () => void): this; on(event: 'resume', listener: () => void): this; on(event: 'progress', listener: (stats: StatsObject) => void): this; on>(event: string | symbol, listener: (...args: T) => void): this; }