DuyTa's picture
Upload folder using huggingface_hub
bc20498 verified
raw
history blame
980 Bytes
/// <reference types="node" />
import * as fs from 'fs';
import { readFileSync, existsSync, readdirSync, lstatSync, statSync, writeFileSync, appendFileSync, mkdirSync, symlinkSync, utimesSync } from 'fs';
declare function outputWrapper(node: any): outputWrapper.FSOutput;
export = outputWrapper;
declare namespace outputWrapper {
interface FSOutput {
readFileSync: typeof readFileSync;
existsSync: typeof existsSync;
lstatSync: typeof lstatSync;
readdirSync: typeof readdirSync;
statSync: typeof statSync;
writeFileSync: typeof writeFileSync;
appendFileSync: typeof appendFileSync;
rmdirSync: (path: string, options?: {
recursive?: boolean;
}) => void;
mkdirSync: typeof mkdirSync;
unlinkSync: typeof fs.unlinkSync;
symlinkOrCopySync: (srcPath: string, destPath: string) => void;
symlinkSync: typeof symlinkSync;
utimesSync: typeof utimesSync;
}
}