UNPKG

@flamesshield/rules-engine

Version:

Independent rules engine for security analysis of Firebase

32 lines 883 B
/** * Expression Parser for rule validation * * Parses and validates rule expressions, extracting paths and analyzing complexity */ export declare class ExpressionParser { /** * Extract all valid paths from an expression */ static extractPaths(expression: string): string[]; /** * Find nested paths inside brackets */ private static findNestedPaths; /** * Check if a string is a reserved keyword */ private static isReservedWord; /** * Check if a string is numeric */ private static isNumeric; /** * Validate the syntax of an expression */ static validateSyntax(expression: string): boolean; /** * Calculate the complexity of an expression */ static getExpressionComplexity(expression: string): 'low' | 'medium' | 'high'; } //# sourceMappingURL=expression-parser.d.ts.map