export const ENGINE_OPERATION_TEST_HOOKS_ENABLED = readNodeEnv() === 'test';
function readNodeEnv() {
    const maybeProcess = Reflect.get(globalThis, 'process');
    if (typeof maybeProcess !== 'object' || maybeProcess === null) {
        return undefined;
    }
    const maybeEnv = Reflect.get(maybeProcess, 'env');
    if (typeof maybeEnv !== 'object' || maybeEnv === null) {
        return undefined;
    }
    const nodeEnv = Reflect.get(maybeEnv, 'NODE_ENV');
    return typeof nodeEnv === 'string' ? nodeEnv : undefined;
}
//# sourceMappingURL=operation-service-types.js.map