import type { SerializedElementNode, SerializedLexicalNode } from 'lexical'; import type { DefaultDocumentIDType, JsonValue } from 'payload'; import type { StronglyTypedElementNode } from '../../../nodeTypes.js'; export type LinkFields = { [key: string]: JsonValue; doc?: { relationTo: string; value: { [key: string]: JsonValue; id: DefaultDocumentIDType; } | DefaultDocumentIDType; } | null; linkType: 'custom' | 'internal'; newTab: boolean; url?: string; }; export type SerializedLinkNode = { fields: LinkFields; /** * @todo make required in 4.0 and type AutoLinkNode differently */ id?: string; } & StronglyTypedElementNode; export type SerializedAutoLinkNode = { fields: LinkFields; } & StronglyTypedElementNode; //# sourceMappingURL=types.d.ts.map