/** * Converts a SPARQL query into a * {@link index!DefaultRuleGroupType DefaultRuleGroupType} or {@link index!DefaultRuleGroupTypeIC DefaultRuleGroupTypeIC}. * * @module parseSPARQL */ import { bn as DefaultRuleGroupType, tn as DefaultRuleGroupTypeIC } from "./index-BYoGPw3e.js"; import { t as ParserCommonOptions } from "./import-C1wfXAnl.js"; /** * Options for {@link parseSPARQL}. */ interface ParseSPARQLOptions extends Pick { independentCombinators?: boolean; } /** * Parses a SPARQL query string into a {@link DefaultRuleGroupType}. * * Accepts a full SPARQL query or a `FILTER` expression. Triple patterns are * consumed but discarded — only FILTER conditions are returned. * * @example * ```ts * // Full query — extracts FILTER conditions only * parseSPARQL('SELECT ?x WHERE { ?x foaf:name ?name . FILTER(?age > 30) }'); * * // Bare FILTER expression wrapped in a stub query * parseSPARQL('?age > 30 && ?name != "Alice"'); * ``` */ export declare function parseSPARQL(sparql: string): DefaultRuleGroupType; export declare function parseSPARQL(sparql: string, options: Omit & { independentCombinators?: false; }): DefaultRuleGroupType; export declare function parseSPARQL(sparql: string, options: Omit & { independentCombinators: true; }): DefaultRuleGroupTypeIC; export type { ParseSPARQLOptions };