/** * @license * Copyright 2026 Steven Roussey * SPDX-License-Identifier: Apache-2.0 */ /** * Replace each `root` prefix in `stack` with the literal placeholder * `` so absolute filesystem paths (build-server home dirs, container * layouts, customer-specific deployment roots) don't leak through error * surfaces. * * Pure helper — returns the input unchanged when `stack` is undefined or * the `roots` list is empty. Multiple roots are applied in order; * empty-string roots are skipped (avoids replacing every empty position * with ``). */ export declare function scrubStack(stack: string | undefined, roots: readonly string[]): string | undefined; /** * Filesystem roots for {@link scrubStack}. Node/Bun return `process.cwd()`; browser * workers often define `process` without `cwd`, so this returns `[]` there. */ export declare function stackScrubRoots(): readonly string[]; //# sourceMappingURL=scrubStack.d.ts.map