/** * Field-Level Hook Execution * * Runs FieldHooksConfig (beforeValidate/beforeChange/afterChange/afterRead) * for each field that has hooks defined. */ import type { Field, RequestContext } from '@momentumcms/core'; type FieldHookType = 'beforeValidate' | 'beforeChange' | 'afterChange' | 'afterRead'; /** * Check if any fields in the collection have hooks defined. * Recursively checks through all field nesting (groups, arrays, blocks, layout fields). */ export declare function hasFieldHooks(fields: Field[]): boolean; /** * Run field-level hooks for a specific hook type. * Iterates through all fields and runs matching hooks, allowing each to transform the field value. * Recurses into groups, arrays, blocks, and layout fields. * Returns the data with any transformed values. */ export declare function runFieldHooks(hookType: FieldHookType, fields: Field[], data: Record, req: RequestContext, operation: 'create' | 'update' | 'read'): Promise>; export {};