/** * @file `withTmp` — run a callback with a freshly-created temp directory under * the cacache root. Wraps cacache's `tmp.withTmp` with a corrected type * signature (the DefinitelyTyped definition incorrectly declares `void` even * though the function forwards the callback's return value). */ /** * Execute a callback with a temporary directory for cache operations. * * @example * ;```typescript * const result = await withTmp(async tmpDir => { * // Use tmpDir for temporary cache work * return 'done' * }) * ``` */ export declare function withTmp(callback: (tmpDirPath: string) => Promise): Promise;