//#region src/infra/temp-download.d.ts type TempDownloadTarget = { dir: string; path: string; file(fileName?: string): string; cleanup: () => Promise; [Symbol.asyncDispose](): Promise; }; declare function sanitizeTempFileName(fileName: string): string; /** Build a stable temp path shape while keeping caller-controlled text filename-safe. */ declare function buildRandomTempFilePath(params: { prefix: string; extension?: string; tmpDir?: string; now?: number; uuid?: string; }): string; declare function createTempDownloadTarget(params: { prefix: string; fileName?: string; tmpDir?: string; }): Promise; /** Run with a private temp download path and always attempt workspace cleanup. */ declare function withTempDownloadPath(params: { prefix: string; fileName?: string; tmpDir?: string; }, fn: (tmpPath: string) => Promise): Promise; //#endregion export { withTempDownloadPath as i, createTempDownloadTarget as n, sanitizeTempFileName as r, buildRandomTempFilePath as t };