/** * TypeBox `Value` helpers for scanner `paramsSchema` / options validation. * * **Package dependency:** this module imports `@sinclair/typebox` and * `@sinclair/typebox/value` at runtime. They must be listed in **dependencies** * (not only devDependencies) so production installs and OpenClaw extension * layouts that omit dev deps still resolve `node_modules/@sinclair/typebox`. */ import type { TSchema } from "@sinclair/typebox"; /** * Returns whether `value` satisfies `schema` via TypeBox `Value.Check`. * * @param schema - TypeBox schema, or `undefined` (treated as valid for any value) * @param value - User-provided object to validate * @returns `true` if there is no schema or `Value.Check` succeeds */ export declare function isSchemaValueValid(schema: TSchema | undefined, value: unknown): boolean; /** * Returns a short, single-line description of the first TypeBox error for `value` against `schema`. * * @param schema - TypeBox schema (required; use after `isSchemaValueValid` fails) * @param value - The same value that failed `Value.Check` * @returns Path and message from `Value.Errors(...).First()`, or a fallback string */ export declare function describeSchemaValidationError(schema: TSchema, value: unknown): string; //# sourceMappingURL=schema-utils.d.ts.map