/** * Semantic validator for inferring and validating semantic types. * * This module provides functions to: * 1. Infer semantic types from parameter names and descriptions * 2. Validate values against expected semantic types */ import type { SemanticType, SemanticInference, SemanticValidationResult } from './semantic-types.js'; /** * Infer semantic type from parameter name and description. * * Uses pattern matching against known semantic type patterns to determine * the most likely semantic type for a parameter. * * @param paramName - The name of the parameter * @param description - Optional description of the parameter * @param schemaFormat - Optional JSON Schema format hint * @returns Inference result with type, confidence, and evidence */ export declare function inferSemanticType(paramName: string, description?: string, schemaFormat?: string): SemanticInference; /** * Validate a value against an expected semantic type. * * @param paramName - The name of the parameter being validated * @param value - The value to validate * @param expectedType - The expected semantic type * @returns Validation result with validity and any issues */ export declare function validateSemanticValue(paramName: string, value: unknown, expectedType: SemanticType): SemanticValidationResult; /** * Validate all parameters in a tool call against inferred types. * * @param args - The arguments to validate * @param inferences - The semantic inferences for each parameter * @returns Array of validation results */ export declare function validateAllParameters(args: Record, inferences: SemanticInference[]): SemanticValidationResult[]; //# sourceMappingURL=semantic-validator.d.ts.map