export interface WriteCollisionInput { /** Absolute path the plugin wants to write to. */ targetPath: string; /** * Current contents of the file at `targetPath`, or `null` if the file * does not exist. The caller is responsible for the actual `readFile` * — we deliberately keep this function pure. */ existingContents: string | null; /** * Set of absolute paths the plugin has already emitted during the * current build/dev session. If the target path is in this set, we're * updating our own output (subsequent compile of the same target after * a cache miss/eviction) and overwriting is safe. */ emittedThisRun: Set; } /** * Decide whether writing to `targetPath` is safe. * * Returns the literal string `'write'` when safe — chosen over a boolean * so the call site reads naturally (`if (checkWriteCollision(...) === * 'write') { ... }`). Throws otherwise. */ export declare function checkWriteCollision(input: WriteCollisionInput): 'write'; //# sourceMappingURL=write-guard.d.ts.map