/** * Python shutil module for TypeScript - Browser version * * Browser stub - file operations are not available. * * @see {@link https://docs.python.org/3/library/shutil.html | Python shutil documentation} * @module */ /** * Copy file from src to dst. * Browser stub - throws error. */ declare function copy(_src: string, _dst: string): Promise; /** * Copy file with metadata from src to dst. * Browser stub - throws error. */ declare function copy2(_src: string, _dst: string): Promise; /** * Copy an entire directory tree. * Browser stub - throws error. */ declare function copytree(_src: string, _dst: string, _options?: { symlinks?: boolean; ignore?: (dir: string, files: string[]) => string[]; copyFunction?: (src: string, dst: string) => Promise; dirsExist_ok?: boolean; }): Promise; /** * Move a file or directory. * Browser stub - throws error. */ declare function move(_src: string, _dst: string): Promise; /** * Remove a directory tree. * Browser stub - throws error. */ declare function rmtree(_path: string, _ignoreErrors?: boolean): Promise; /** * Find an executable in PATH. * Browser stub - returns null. */ declare function which(_cmd: string, _mode?: number, _path?: string): Promise; /** * Return disk usage statistics. * Browser stub - throws error. */ declare function diskUsage(_path: string): Promise<{ total: number; used: number; free: number; }>; /** * Copy file permission bits. * Browser stub - no-op. */ declare function copyMode(_src: string, _dst: string): Promise; /** * Copy file stat info. * Browser stub - no-op. */ declare function copyStat(_src: string, _dst: string): Promise; /** * Copy file without metadata. * Browser stub - throws error. */ declare function copyFile(_src: string, _dst: string): Promise; /** * Copy file object. * Browser stub - throws error. */ declare function copyFileObj(_fsrc: { read: (size: number) => Promise; }, _fdst: { write: (data: Uint8Array) => Promise; }, _length?: number): Promise; /** * Get terminal size. */ declare function getTerminalSize(fallback?: [number, number]): { columns: number; lines: number; }; /** * Make an archive file. * Browser stub - throws error. */ declare function makeArchive(_baseName: string, _format: string, _rootDir: string): string; /** * Unpack an archive file. * Browser stub - throws error. */ declare function unpackArchive(_filename: string, _extractDir?: string): void; declare const shutilModule_copy: typeof copy; declare const shutilModule_copy2: typeof copy2; declare const shutilModule_copyFile: typeof copyFile; declare const shutilModule_copyFileObj: typeof copyFileObj; declare const shutilModule_copyMode: typeof copyMode; declare const shutilModule_copyStat: typeof copyStat; declare const shutilModule_copytree: typeof copytree; declare const shutilModule_diskUsage: typeof diskUsage; declare const shutilModule_getTerminalSize: typeof getTerminalSize; declare const shutilModule_makeArchive: typeof makeArchive; declare const shutilModule_move: typeof move; declare const shutilModule_rmtree: typeof rmtree; declare const shutilModule_unpackArchive: typeof unpackArchive; declare const shutilModule_which: typeof which; declare namespace shutilModule { export { shutilModule_copy as copy, shutilModule_copy2 as copy2, shutilModule_copyFile as copyFile, shutilModule_copyFileObj as copyFileObj, shutilModule_copyMode as copyMode, shutilModule_copyStat as copyStat, shutilModule_copytree as copytree, shutilModule_diskUsage as diskUsage, shutilModule_getTerminalSize as getTerminalSize, shutilModule_makeArchive as makeArchive, shutilModule_move as move, shutilModule_rmtree as rmtree, shutilModule_unpackArchive as unpackArchive, shutilModule_which as which }; } export { copy2 as a, copyFile as b, copy as c, copyFileObj as d, copyMode as e, copyStat as f, copytree as g, diskUsage as h, getTerminalSize as i, move as j, makeArchive as m, rmtree as r, shutilModule as s, unpackArchive as u, which as w };