/** * True when a caught error is a Neo4j constraint-validation failure. Callers * branch on this (the deterministic `code`), never on the human message. */ export declare function isConstraintViolation(err: unknown): err is Error & { code: string; }; /** * Extract every `` `name` = 'value' `` pair from a Neo4j constraint-violation * message. Handles both the single-property form ("... property `x` = 'v'") and * the composite form ("... properties `a` = 'v1', `b` = 'v2'"). Returns [] when * the message has no parseable pairs, so callers must keep a fallback. */ export declare function parseConstraintProperties(message: string): Array<{ propName: string; propValue: string; }>; /** * Extract the single violated property from a Neo4j constraint message. Matches * only the single-property message form ("... property `x` = 'v'") and returns * null otherwise — including composite-constraint messages, whose "properties" * (plural) form this deliberately does not match. Kept for callers that reason * about one property; use parseConstraintProperties for composite constraints. */ export declare function parseConstraintProperty(message: string): { propName: string; propValue: string; } | null; //# sourceMappingURL=neo4j-constraint.d.ts.map