import { z } from 'zod'; import type { VectorValueLike } from '../utils/pathTypes.js'; /** * Zod schema for a vector embedding field on create/update payloads. * Accepts plain number arrays (tests, pre-write transforms) and genuine `FieldValue.vector()` values. * * The same constraints apply to BOTH representations: non-empty, all-finite components, no more than * Firestore's maximum embedding dimension, and — when `dimensions` is given — exactly that length. A * native vector's components are read from its public `toArray()`, so a native vector cannot bypass * the dimension/finite checks a plain array is held to (review T3). A forged plain `{ _values }` map * is not a genuine `VectorValue`, so it falls through to the array path and is rejected (finding B7). * * @param dimensions - When provided, values must have exactly this many components. Must itself be a * positive integer no greater than Firestore's maximum embedding dimension. * @throws {@link TypeError} when `dimensions` is not a supported positive integer */ export declare function vectorEmbeddingSchema(dimensions?: number): z.ZodCustom;