import type { z } from 'zod'; import type { EntitySchemaMeta } from '#src/references/definition-ref-registry.js'; /** * Information about an entity array found during schema walking. */ export interface EntityArrayInfo { /** Dot-separated path to the array in the definition (e.g., "models", "models.*.model.fields") */ path: string; /** The entity metadata registered on the array element schema */ entityMeta: EntitySchemaMeta; /** The Zod schema for the array element */ elementSchema: z.ZodType; } /** * Recursively walks a Zod schema (without data) and collects all entity arrays. * * Unlike `walkDataWithSchema`, this operates on the schema structure alone. * For discriminated unions, it walks all branches (since there's no data to * pick a specific branch). Entity arrays are detected via `definitionRefRegistry` * entity metadata on array element schemas. * * @param schema - The root Zod schema to walk * @returns All entity arrays found, with their paths and metadata */ export declare function collectEntityArrays(schema: z.ZodType): EntityArrayInfo[]; //# sourceMappingURL=walk-schema.d.ts.map