UNPKG

kangaroo-expression

Version:

Secure expression evaluator with AST-based execution - A fast, safe, and powerful JavaScript-like expression language

31 lines 1.26 kB
import type { SafeFunction, FunctionRegistry, FunctionCategory, FunctionRegistryStats, ValidationResult } from '@/types'; export declare class DefaultFunctionRegistry implements FunctionRegistry { private functions; constructor(); get(name: string): SafeFunction | undefined; register(func: SafeFunction): void; unregister(name: string): void; list(category?: FunctionCategory): SafeFunction[]; has(name: string): boolean; getNames(): string[]; getCategories(): FunctionCategory[]; getByCategory(category: FunctionCategory): SafeFunction[]; clear(): void; getStats(): FunctionRegistryStats; validateFunction(func: SafeFunction): ValidationResult; import(other: FunctionRegistry): void; export(): any; private registerDefaultFunctions; private registerStringFunctions; private registerArrayFunctions; private registerObjectFunctions; private registerMathFunctions; private registerDateFunctions; private registerJsonFunctions; private registerWorkflowFunctions; private registerCryptoFunctions; private registerArrayUtilityFunctions; private registerStringUtilityFunctions; private registerBasicConditionalFunctions; } //# sourceMappingURL=registry.d.ts.map