/// /// import * as fs from 'node:fs/promises'; declare class FileHandler { mapi: any; file: string; state: string; err?: string; eof?: boolean; fhandle?: fs.FileHandle; resolve?: (v?: any) => void; reject?: (err?: Error) => void; constructor(mapi: any, file: string); close(): Promise; protected makePromise(): Promise; ready(): boolean; initTransfer(flag: 'r' | 'w'): Promise; } declare class FileDownloader extends FileHandler { bytesWritten: number; constructor(mapi: any, file: string); download(): Promise; writeChunk(data: Buffer): Promise; } declare class FileUploader extends FileHandler { skip: number; bytesSent: number; chunkSize: number; eof: boolean; constructor(mapi: any, file: string, skip?: number); upload(): Promise; private sendChunk; } export { FileUploader, FileDownloader };