/** * Write import content to a private temp file, run the callback with its path, then remove the * whole directory. Each call gets its own 0700 directory (mkdtemp) so concurrent imports cannot * see or clobber each other's files. * * @param content - The file content to write * @param prefix - Temp directory name prefix * @param fileName - Name of the file created inside the temp directory * @param callback - Async function that receives the temp file path * @returns The result of the callback */ export declare function withTempFile(content: string, prefix: string, fileName: string, callback: (filePath: string) => Promise): Promise;