import { p as pathJoin, a as pathBasename, b as pathDirname, c as pathSplitFn, d as pathSplitExt, e as pathExtName, f as pathIsAbs, g as pathNormPath, h as pathRelPath, i as pathCommonPath, j as pathExpandUser, k as pathExpandVars, l as altSep, m as chdir, n as curDir, o as environ, q as extSep, r as getCwd, s as getCwdb, t as getenv, u as lineSep, v as name, w as parDir, x as pathSep, y as sep } from './os.shared-C3x70nhO.js'; /** * Python os module for TypeScript - Node.js version * * Provides operating system interface functions matching Python's os module, * with real filesystem operations using Node.js fs module (async). * * @see {@link https://docs.python.org/3/library/os.html | Python os documentation} * @see {@link https://docs.python.org/3/library/os.path.html | Python os.path documentation} * @module */ declare const path: { join: typeof pathJoin; basename: typeof pathBasename; dirname: typeof pathDirname; split: typeof pathSplitFn; splitExt: typeof pathSplitExt; extName: typeof pathExtName; isAbs: typeof pathIsAbs; normPath: typeof pathNormPath; relPath: typeof pathRelPath; commonPath: typeof pathCommonPath; expandUser: typeof pathExpandUser; expandVars: typeof pathExpandVars; /** Return normalized absolutized version of pathname */ absPath(p: string): string; /** Return canonical path, eliminating symlinks */ realPath(p: string): Promise; /** Test if path exists */ exists(p: string): Promise; /** Test if path is a file */ isFile(p: string): Promise; /** Test if path is a directory */ isDir(p: string): Promise; /** Test if path is a symbolic link */ isLink(p: string): Promise; /** Return size of file */ getSize(p: string): Promise; /** Return modification time as Unix timestamp */ getMtime(p: string): Promise; /** Return access time as Unix timestamp */ getAtime(p: string): Promise; /** Return creation time as Unix timestamp */ getCtime(p: string): Promise; }; /** List directory contents */ declare function listDir(p?: string): Promise; /** Create a directory */ declare function mkdir(p: string, mode?: number): Promise; /** Create a directory and parents */ declare function makeDirs(p: string, mode?: number, existOk?: boolean): Promise; /** Remove a file */ declare function remove(p: string): Promise; /** Remove a file (alias for remove) */ declare const unlink: typeof remove; /** Remove a directory */ declare function rmdir(p: string): Promise; /** Remove directory tree (removes empty parent directories) */ declare function removeDirs(p: string): Promise; /** Rename a file or directory */ declare function rename(src: string, dst: string): Promise; /** Rename with automatic directory creation */ declare function renames(src: string, dst: string): Promise; /** Replace file (atomic rename) */ declare function replace(src: string, dst: string): Promise; /** Walk directory tree */ declare function walk(top: string, options?: { topdown?: boolean; followlinks?: boolean; }): AsyncGenerator<[string, string[], string[]]>; /** Get file stat */ declare function stat(p: string): Promise<{ st_mode: number; st_size: number; st_mtime: number; st_atime: number; st_ctime: number; }>; declare const osModule_altSep: typeof altSep; declare const osModule_chdir: typeof chdir; declare const osModule_curDir: typeof curDir; declare const osModule_environ: typeof environ; declare const osModule_extSep: typeof extSep; declare const osModule_getCwd: typeof getCwd; declare const osModule_getCwdb: typeof getCwdb; declare const osModule_getenv: typeof getenv; declare const osModule_lineSep: typeof lineSep; declare const osModule_listDir: typeof listDir; declare const osModule_makeDirs: typeof makeDirs; declare const osModule_mkdir: typeof mkdir; declare const osModule_name: typeof name; declare const osModule_parDir: typeof parDir; declare const osModule_path: typeof path; declare const osModule_pathBasename: typeof pathBasename; declare const osModule_pathCommonPath: typeof pathCommonPath; declare const osModule_pathDirname: typeof pathDirname; declare const osModule_pathExpandUser: typeof pathExpandUser; declare const osModule_pathExpandVars: typeof pathExpandVars; declare const osModule_pathExtName: typeof pathExtName; declare const osModule_pathIsAbs: typeof pathIsAbs; declare const osModule_pathJoin: typeof pathJoin; declare const osModule_pathNormPath: typeof pathNormPath; declare const osModule_pathRelPath: typeof pathRelPath; declare const osModule_pathSep: typeof pathSep; declare const osModule_pathSplitExt: typeof pathSplitExt; declare const osModule_pathSplitFn: typeof pathSplitFn; declare const osModule_remove: typeof remove; declare const osModule_removeDirs: typeof removeDirs; declare const osModule_rename: typeof rename; declare const osModule_renames: typeof renames; declare const osModule_replace: typeof replace; declare const osModule_rmdir: typeof rmdir; declare const osModule_sep: typeof sep; declare const osModule_stat: typeof stat; declare const osModule_unlink: typeof unlink; declare const osModule_walk: typeof walk; declare namespace osModule { export { osModule_altSep as altSep, osModule_chdir as chdir, osModule_curDir as curDir, osModule_environ as environ, osModule_extSep as extSep, osModule_getCwd as getCwd, osModule_getCwdb as getCwdb, osModule_getenv as getenv, osModule_lineSep as lineSep, osModule_listDir as listDir, osModule_makeDirs as makeDirs, osModule_mkdir as mkdir, osModule_name as name, osModule_parDir as parDir, osModule_path as path, osModule_pathBasename as pathBasename, osModule_pathCommonPath as pathCommonPath, osModule_pathDirname as pathDirname, osModule_pathExpandUser as pathExpandUser, osModule_pathExpandVars as pathExpandVars, osModule_pathExtName as pathExtName, osModule_pathIsAbs as pathIsAbs, osModule_pathJoin as pathJoin, osModule_pathNormPath as pathNormPath, osModule_pathRelPath as pathRelPath, osModule_pathSep as pathSep, osModule_pathSplitExt as pathSplitExt, osModule_pathSplitFn as pathSplitFn, osModule_remove as remove, osModule_removeDirs as removeDirs, osModule_rename as rename, osModule_renames as renames, osModule_replace as replace, osModule_rmdir as rmdir, osModule_sep as sep, osModule_stat as stat, osModule_unlink as unlink, osModule_walk as walk }; } export { mkdir as a, removeDirs as b, rename as c, renames as d, replace as e, rmdir as f, listDir as l, makeDirs as m, osModule as o, path as p, remove as r, stat as s, unlink as u, walk as w };