/** * True when the path looks like a mock leak — a Unix-style mock string * (e.g. '/fake/workspace', '/mock/state', '/tmp/fake-workspace') that, on * Windows, would resolve to a path directly under the filesystem root. * * Pure function — no side effects, safe to call from anywhere. */ export declare function isMockLeakPath(dir: string): boolean; /** * Detect mock-leak paths and redirect them to a deterministic subdir under * os.tmpdir(). Production is a no-op — the redirect only fires under * NODE_ENV=test or when VITEST is set. * * Returns the input unchanged when: * - input is empty * - we're not in a test environment * - the path doesn't match any mock-leak pattern * * Otherwise returns a redirected path under * `//`. */ export declare function guardWorkspaceLeak(dir: string): string; //# sourceMappingURL=workspace-leak-guard.d.ts.map