import { type FieldState, type ServerFunction } from 'payload'; export type RenderFieldServerFnArgs = { /** Overrides admin.hidden from the schemaPath lookup. */ hidden?: boolean; /** * Pass the value this field will receive when rendering it on the server. * For richText, this helps provide initial state for sub-fields that are immediately rendered (like blocks) * so that we can avoid multiple waterfall requests for each block that renders on the client. */ initialValue?: unknown; /** Overrides the label from the schemaPath lookup. Use false to hide it. */ label?: false | Record | string; /** Overrides the form field name from the schemaPath lookup. */ name?: string; /** * Path to the field to render * @default field name */ path?: string; /** * Dot schema path to a richText field declared in your config. * Format: * "collection.." * "global.." * * Examples: * "collection.posts.richText" * "global.siteSettings.content" */ schemaPath: string; }; export type RenderFieldServerFnReturnType = {} & FieldState['customComponents']; /** * @experimental - may break in minor releases */ export declare const _internal_renderFieldHandler: ServerFunction>; //# sourceMappingURL=renderFieldServerFn.d.ts.map