import { Condition, ITSELF, InterpretationContext } from '@ucast/core'; export type IsArray = (value: unknown) => boolean; export interface JsInterpretationOptions { get(object: any, field: string | typeof ITSELF): any; compare(a: T, b: T): 1 | -1 | 0; isArray(value: unknown): boolean; } export type JsInterpreter = (node: N, value: Value, context: InterpretationContext> & JsInterpretationOptions) => boolean;