import type { z } from 'zod'; /** * Sorts all entity arrays in a serialized definition by their resolved name. * * Uses `transformDataWithSchema` to walk the schema+data tree bottom-up. * Arrays whose element schema has entity metadata (via `withEnt`) are sorted * using `compareStrings` unless the entity has `disableSort: true`. * All other arrays are left in their original order. * * @param schema - The Zod schema describing the data structure * @param data - The serialized data (entity IDs already replaced with names) * @returns A new data tree with entity arrays sorted by name */ export declare function sortEntityArrays(schema: z.ZodType, data: T): T; //# sourceMappingURL=sort-entity-arrays.d.ts.map