export declare function getHomeDir(): string; /** * Expand ~ to the user's home directory. */ export declare function expandTilde(p: string): string; /** * Contract the home directory prefix back to ~. */ export declare function contractTilde(p: string): string; /** * Resolve a target path (expand tilde, resolve relative). */ export declare function resolveTargetPath(p: string): string; /** * Ensure a directory exists, creating it recursively if needed. */ export declare function ensureDir(dirPath: string): Promise; /** * Check if a file exists. */ export declare function fileExists(filePath: string): Promise; /** * Check if a path is a directory. * Returns false if path doesn't exist or is not a directory. */ export declare function isDirectory(filePath: string): Promise; export declare function isInsideDir(filePath: string, dir: string): boolean;