/** * Get the output path for a file based on the output directory or file. * If outDirOrFile is a filepath, it will be returned as is. * If outDirOrFile is a directory, the file will be placed in that directory. */ export declare function getOutputPath(filepath: string, outDirOrFile: string | undefined | null, opts?: { create?: boolean; }): string; export declare function getFileName(filepath: string): string; export declare function getDirName(filepath: string): string; export declare type GLTFFileCallback = (file: string) => void | Promise; export declare function foreachGLTF(args: string | string[], callback: GLTFFileCallback): Promise; export declare function replaceExtension(filepath: string, newExtension: string): string; export declare function isDirectory(path: string): boolean; /** * Ensure that a path is a directory. * If the directory does not exist, it will be created. */ export declare function ensureIsDirectory(path: string): string; /** Recursively delete a directory, retrying on EBUSY/EPERM (Windows file handle delays). * Silently gives up after all retries fail — temp dirs will be cleaned up by the OS. */ export declare function safeRmDir(dirPath: string, retries?: number, delayMs?: number): Promise;