import { $t as DefaultRuleGroupType, Pt as DefaultRuleGroupTypeIC } from "./index-DOIE2pwx.js"; //#region src/utils/parseGremlin/parseGremlin.d.ts /** * Options for {@link parseGremlin}. */ interface ParseGremlinOptions { independentCombinators?: boolean; } /** * Parses a Gremlin traversal string into a {@link DefaultRuleGroupType}. * * Accepts a full Gremlin traversal or a chain of `.has()` steps. * Pattern steps (`.hasLabel()`, `.out()`, `.in()`, `.both()`, `.as()`) are * consumed but discarded — only `.has()` filter predicates are returned. * * @example * ```ts * // Full traversal — extracts .has() conditions only * parseGremlin("g.V().hasLabel('Person').has('age', gt(30))"); * * // Bare .has() chain * parseGremlin(".has('age', gt(30)).has('name', 'Alice')"); * ``` */ declare function parseGremlin(gremlin: string): DefaultRuleGroupType; declare function parseGremlin(gremlin: string, options: Omit & { independentCombinators?: false; }): DefaultRuleGroupType; declare function parseGremlin(gremlin: string, options: Omit & { independentCombinators: true; }): DefaultRuleGroupTypeIC; //#endregion export { type ParseGremlinOptions, parseGremlin }; //# sourceMappingURL=parseGremlin.d.ts.map