// Module-level state acting as a singleton: the start-trace tool stashes the
// resolved save path here so the stop-trace tool can surface it without
// re-resolving. ES modules are cached and singleton per Node process, so this
// is the idiomatic TS pattern for cross-call state — equivalent to a class
// with private static fields, without the extra wrapper.
let savedPath;
export function setSavedSessionPath(p) {
    savedPath = p;
}
export function consumeSavedSessionPath() {
    const v = savedPath;
    savedPath = undefined;
    return v;
}
