/** * Runtime validation schema and wrapper for WebLLM Embeddings adapter options. * * @module @nhtio/adk/batteries/embeddings/webllm/validation * * @remarks * Validates `WebLLMEmbeddingsAdapterOptions` at construction time. Throws * `E_INVALID_WEBLLM_EMBEDDINGS_OPTIONS` on failure. `model` is required; unknown top-level keys * are rejected so typos fail loud. WebGPU availability is checked at engine-resolution time (not * here), since an `engine` may be injected for tests/non-WebGPU paths. */ import type { WebLLMEmbeddingsAdapterOptions } from "./types"; /** * Validator schema for `WebLLMEmbeddingsAdapterOptions`. Rejects unknown top-level keys. */ export declare const webLLMEmbeddingsOptionsSchema: import("@nhtio/validation").ObjectSchema; /** * Validates an arbitrary input against `webLLMEmbeddingsOptionsSchema` and returns the resolved * options shape. Throws `E_INVALID_WEBLLM_EMBEDDINGS_OPTIONS` (carrying the validator's report on * `cause`) on failure. * * @param input - The raw options object to validate. * @returns The resolved options object with defaults filled in. */ export declare const validateOptions: (input: unknown) => WebLLMEmbeddingsAdapterOptions;