/** * How atomic-write temp files are named. * * Deliberately its own module with no imports: two very different consumers * need it, and neither should have to drag the other's dependencies in. * `fsHelpers` builds real temp paths from it; `scaffold/gitignore` derives * the ignore globs that cover those paths after a hard kill. Putting the * policy in `fsHelpers` makes every consumer of the ignore constants depend * transitively on an I/O module — which breaks any test that mocks * `fsHelpers` wholesale, for no reason connected to what it was testing. * * They must agree. A temp name the ignore rule does not match is a file * that lands in a customer's `git status` and, with `git add -A`, in their * history. */ /** The suffix every atomic-write temp file ends with. */ export declare const ATOMIC_TMP_SUFFIX = ".tmp"; /** * The glob covering a file's atomic-write temp files, in `.gitignore` * spelling. * * The `*` is not decoration: temp names carry a random infix so concurrent * writers cannot collide on one, which means a literal `.tmp` entry * matches nothing the writers actually produce. */ export declare function atomicTmpGlob(fileGlob: string): string;