import * as smartfsModule from '@push.rocks/smartfs'; /** * FsHelpers provides filesystem utility methods for tsbuild. * All methods are static for convenience. */ export declare class FsHelpers { /** * The smartfs instance for filesystem operations */ static readonly smartfs: smartfsModule.SmartFs; /** * List files matching a glob pattern like './ts/**\/*.ts' * Parses the pattern to extract base directory and filter pattern */ static listFilesWithGlob(basePath: string, globPattern: string): Promise; /** * Extract source folder name from a glob pattern * './ts_core/**\/*.ts' → 'ts_core' * 'ts_foo/**\/*.ts' → 'ts_foo' */ static extractSourceFolder(pattern: string): string | null; /** * Get the current working directory */ static getCwd(): string; /** * Get the package directory (where package.json is located) */ static getPackageDir(): string; /** * Check if a file exists */ static fileExists(filePath: string): Promise; /** * Check if a directory exists */ static directoryExists(dirPath: string): Promise; /** * Read a JSON file and parse it */ static readJsonSync(filePath: string): T; /** * List directory contents */ static listDirectory(dirPath: string): Promise; /** * Remove a directory recursively. */ static removeDirectory(dirPath: string): Promise; /** * Move/rename a file or directory */ static move(src: string, dest: string): Promise; }