import type { I18nClient, TFunction } from '@payloadcms/translations'; import type { Field } from '../../fields/config/types.js'; import type { ClientFieldWithOptionalType, ServerComponentProps } from './Field.js'; export type DescriptionFunction = (args: { i18n: I18nClient; t: TFunction; }) => string; export type FieldDescriptionClientComponent = React.ComponentType>; export type FieldDescriptionServerComponent = React.ComponentType>; export type StaticDescription = Record | string; export type Description = DescriptionFunction | StaticDescription; export type GenericDescriptionProps = { readonly className?: string; readonly description?: StaticDescription; readonly marginPlacement?: 'bottom' | 'top'; readonly path: string; }; export type FieldDescriptionServerProps = { clientField: TFieldClient; readonly field: TFieldServer; } & GenericDescriptionProps & ServerComponentProps; export type FieldDescriptionClientProps = { field: TFieldClient; } & GenericDescriptionProps; //# sourceMappingURL=Description.d.ts.map