import { BuiltInParserRuleSignature } from '../../builtInParsers/internals/BuiltInParserRuleSignature.js'; import { ParserFunction } from '../definitions/ParserFunction.js'; /** * Validate a rule and build a parser function that will throw the validation errors when executed * @internal * @param rule * @param objectPath - Used for error messages. The path from the rule name down to the sub-keys. * @param context */ export declare function validateRuleOrBuildErrorParserFunction(rule: unknown, objectPath: Array, context: { builtInParserKind: 'generation' | 'utility' | 'all'; }): { isValid: true; rule: BuiltInParserRuleSignature; } | { isValid: false; parserFunctionWithError: ParserFunction; }; //# sourceMappingURL=validateRuleOrBuildErrorParserFunction.d.ts.map