/** * Argument shape/content policy rule evaluator. * * ArgShapeRule matches tool calls by testing that all specified key/value pairs * are present in the tool's arguments. Values may be literal matches or regex * patterns (strings prefixed with `/`). Independently testable. */ import type { ArgShapeRule, EvaluationStep } from '../types.js'; /** Result returned by evaluateArgShapeRule. */ export interface ArgShapeRuleResult { matched: boolean; step: EvaluationStep; } /** * evaluateArgShapeRule, Evaluates a single ArgShapeRule against a tool call. * * Returns `matched: true` only when: * 1. The tool name matches the rule's `toolPattern`, AND * 2. ALL key/value matchers in `argMatchers` match the corresponding arg values. * * @param rule , The ArgShapeRule to evaluate. * @param toolName, Name of the tool being called. * @param args , Arguments passed to the tool. */ export declare function evaluateArgShapeRule(rule: ArgShapeRule, toolName: string, args: Record): ArgShapeRuleResult; //# sourceMappingURL=arg-shape.d.ts.map