/** * A tiny JSON Schema checker for the subset used by the tool definitions: * `type`, `enum`, `minimum`/`maximum`, `minLength`/`maxLength`, `items`, * `properties`, `required` and `additionalProperties: false`. It validates * untrusted tool arguments before they reach the renderer. * @module mcp/schema */ /** * Check `value` against `schema` and return human-readable problems (empty * when valid). * @param {any} schema * @param {unknown} value * @param {string} [at] Name of the value in messages. * @param {string[]} [problems] * @returns {string[]} */ export declare function validate(schema: any, value: unknown, at?: string, problems?: string[]): string[];