import type { SanitizedConfig } from 'mzinga/config'; import type { Field, TabAsField } from 'mzinga/types'; import type { BlocksMap } from '../../utilities/createBlocksMap'; type TraverseFieldsArgs = { /** * Pre-formatted blocks map */ blocks: BlocksMap; /** * The full Payload config */ config: SanitizedConfig; /** * The data reference to be mutated within this recursive function */ dataRef: Record; /** * Data that needs to be removed from the result after all fields have populated */ deletions: (() => void)[]; /** * Column prefix can be built up by group and named tab fields */ fieldPrefix: string; /** * An array of Payload fields to traverse */ fields: (Field | TabAsField)[]; /** * All hasMany number fields, as returned by Drizzle, keyed on an object by field path */ numbers: Record[]>; /** * The current field path (in dot notation), used to merge in relationships */ path: string; /** * All related documents, as returned by Drizzle, keyed on an object by field path */ relationships: Record[]>; /** * Data structure representing the nearest table from db */ table: Record; /** * All hasMany text fields, as returned by Drizzle, keyed on an object by field path */ texts: Record[]>; /** * Set to a locale if this group of fields is within a localized array or block. */ withinArrayOrBlockLocale?: string; }; export declare const traverseFields: >({ blocks, config, dataRef, deletions, fieldPrefix, fields, numbers, path, relationships, table, texts, withinArrayOrBlockLocale, }: TraverseFieldsArgs) => T; export {}; //# sourceMappingURL=traverseFields.d.ts.map