import { getSession } from "./neo4j.js";
import neo4j from "neo4j-driver";
/**
 * Strip RFC 2822 angle brackets from a Message-ID or In-Reply-To header.
 * "<abc@host>" → "abc@host". Already-clean values pass through unchanged.
 */
export function stripAngleBrackets(value) {
    if (!value)
        return null;
    const trimmed = value.trim();
    if (trimmed.startsWith("<") && trimmed.endsWith(">")) {
        return trimmed.slice(1, -1);
    }
    return trimmed;
}
export { neo4j };
export { getSession };
//# sourceMappingURL=graph.js.map