/** * If running as root (via sudo), restore ownership of a file or directory * to the original user (SUDO_UID/SUDO_GID). */ export declare function fixOwnerSync(path: string): void; /** * Async version of restore ownership. */ export declare function fixOwner(path: string): Promise; /** * Formats and prints a helpful error message for EACCES (permission denied) * errors on clai's configuration/storage paths and exits the process. */ export declare function handlePermissionError(err: any): never; export declare function safeExistsSync(filePath: string): boolean; export declare function safeExists(filePath: string): Promise;