import type { SerializedElementNode, SerializedLexicalNode, Spread } from 'lexical';
import type { DefaultDocumentIDType, JsonValue } from 'payload';
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<T extends SerializedLexicalNode = SerializedLexicalNode> = Spread<{
    fields: LinkFields;
    id?: string;
    type: 'link';
}, SerializedElementNode<T>>;
export type SerializedAutoLinkNode<T extends SerializedLexicalNode = SerializedLexicalNode> = {
    type: 'autolink';
} & Omit<SerializedLinkNode<T>, 'id' | 'type'>;
//# sourceMappingURL=types.d.ts.map