/** * `ArgMatcher` — a small, serializable matcher over a tool call's `input`. * * Shared by the check vocabulary (`toolWith` / `notTool` in `src/check.ts`) and * the tool-interception seam (`src/tool-intercept.ts`), so "did the agent call * this tool with these arguments?" means the same thing whether you're *asserting* * on a captured call or *intercepting* one before it runs. Pure + model-free. */ /** * A declarative matcher over a tool call's `input`, keyed by **dot-path** (e.g. * `"body.prompt"`). Each value is matched against the value at that path: a * `RegExp` is a pattern over the stringified value (use this for "contains"), and * a `string`/`number`/`boolean` is an **exact** match (use this for "equals", e.g. * a push target). All keys must match (AND). Serializable, so anything carrying * one still round-trips through `toJSON`. */ export type ArgMatcher = Record; /** Render any tool-input value as a string for matching / messages. */ export declare function stringifyValue(v: unknown): string; /** Resolve a dot-path (`"a.b.c"`) within an arbitrary value, or undefined. */ export declare function getPath(obj: unknown, path: string): unknown; /** Does `input` satisfy every entry of `matcher`? (RegExp = pattern, else exact.) */ export declare function matchesArgs(input: unknown, matcher: ArgMatcher): boolean; /** A human-readable form of a matcher for failure messages. */ export declare function describeArgs(matcher: ArgMatcher): string; /** Serialize a matcher for `toJSON` (RegExp → its string form). */ export declare function serializeArgs(matcher: ArgMatcher): Record; //# sourceMappingURL=arg-match.d.ts.map