UNPKG

logicguru-engine

Version:

Advanced JSON-based rule engine with nested conditions, async evaluation, and flexible action system. Perfect for business rules, workflows, and decision automation.

28 lines (24 loc) 560 B
declare module 'logicguru-engine' { export interface Rule { useFiles?: { [key: string]: { path: string; }; }; [key: string]: any; } export interface RuleEngineOptions { basePath?: string; defaultContext?: Record<string, any>; } export interface RuntimeData { [key: string]: any; } export interface RuleEngine { (runtimeData?: RuntimeData): Promise<any>; } export function configureRuleEngine( rules: Rule[], options?: RuleEngineOptions ): RuleEngine; }