"use strict";
/**
 * Copyright: (c) Myia SAS 2026.
 * This file and its contents are licensed under the AGPLv3 License.
 * Please see the LICENSE file at the root of this repository
 */
Object.defineProperty(exports, "__esModule", { value: true });
exports.HEAL_PREPROCESS = exports.HEAL_THROW = exports.HEAL_OK = exports.HEAL_ENTER = void 0;
// Names of the global functions the Babel plugin injects into
// instrumented source and the recorder entrypoint installs on
// `globalThis`. Both sides import from here so the contract lives in
// one place.
//
// The names are deliberately prefixed with `__heal_` so anyone
// reading the Babel-transformed test source understands at a glance
// which library these hooks belong to. Rename them together (plugin
// and recorder entrypoint) if the package is ever renamed.
exports.HEAL_ENTER = '__heal_enter';
exports.HEAL_OK = '__heal_ok';
exports.HEAL_THROW = '__heal_throw';
// User-extensible per-statement async hook. The Babel plugin emits
// `await globalThis.__heal_preprocess?.(meta)` inside the try body
// before the user's statement when the enclosing function is async.
// The fixture installs the global at test start by composing every
// `preProcessor` registered through `configureTracer({...})`. Stays
// `undefined` when no preprocessors are configured, so the optional
// call short-circuits to a no-op.
exports.HEAL_PREPROCESS = '__heal_preprocess';
