export interface JsonSchemaValidationIssue { path: PropertyKey[]; message: string; expectedTypes?: string[]; keyword?: string; /** * Marks issues that originate inside a failed `anyOf` / `oneOf` branch. * Consumers such as the tool-argument coercion layer use this to avoid * applying type repairs (e.g. singleton-array wrapping) that would be * authoritative outside of a combinator but are only one candidate * branch's expectation here. */ fromUnionBranch?: boolean; } export interface JsonSchemaValidationResult { success: boolean; issues: JsonSchemaValidationIssue[]; } export declare function validateJsonSchemaValue(schema: unknown, value: unknown): JsonSchemaValidationResult; export declare function isJsonSchemaValueValid(schema: unknown, value: unknown): boolean;