@struktoai/mirage-core
Version:
A Unified Virtual Filesystem For AI Agents
11 lines • 485 B
TypeScript
import type { CondContext, CondNode } from './types.ts';
/**
* Evaluate a structured [[ ]] expression tree to its status.
*
* A test answers 0 or 1, and a regex that does not compile answers 2
* without a word. The expression answers what its last test did: `&&`
* stops at the first failure, `||` at the first success, and `!` turns
* any failure into 0.
*/
export declare function evalCond(ctx: CondContext, node: CondNode): Promise<number>;
//# sourceMappingURL=tree.d.ts.map