import { $t as DefaultRuleGroupType, Pt as DefaultRuleGroupTypeIC } from "./index-DOIE2pwx.js"; //#region src/utils/parseCypher/parseCypher.d.ts /** * Options for {@link parseCypher}. */ interface ParseCypherOptions { independentCombinators?: boolean; } /** * Parses a Cypher query string into a {@link DefaultRuleGroupType}. * * Accepts a full Cypher query, a `WHERE` clause, or a bare boolean expression. * MATCH and RETURN clauses are consumed but discarded — only WHERE conditions * are returned. * * @example * ```ts * // Full query — extracts WHERE conditions only * parseCypher('MATCH (a:Person) WHERE a.age > 30 RETURN a'); * * // WHERE clause * parseCypher('WHERE a.age > 30 AND a.name CONTAINS "Alice"'); * * // Bare expression * parseCypher('a.age > 30 AND a.name CONTAINS "Alice"'); * ``` */ declare function parseCypher(cypher: string): DefaultRuleGroupType; declare function parseCypher(cypher: string, options: Omit & { independentCombinators?: false; }): DefaultRuleGroupType; declare function parseCypher(cypher: string, options: Omit & { independentCombinators: true; }): DefaultRuleGroupTypeIC; /** * Parses a GQL query string. GQL is ~95% compatible with Cypher; * the parser handles the same syntax. */ declare function parseGQL(gql: string): DefaultRuleGroupType; declare function parseGQL(gql: string, options: Omit & { independentCombinators?: false; }): DefaultRuleGroupType; declare function parseGQL(gql: string, options: Omit & { independentCombinators: true; }): DefaultRuleGroupTypeIC; //#endregion export { type ParseCypherOptions, parseCypher, parseGQL }; //# sourceMappingURL=parseCypher.d.ts.map