import { ReactNode } from 'react';
import { z } from 'zod';
import { RichTextDefinition as BaseRichTextDefinition, ControlDefinition, type Data, type Resolvable, type SendMessage, type DeserializedRecord, type SchemaType, type SchemaTypeAny, type RichTextPluginControl, type ResourceResolver, type Stylesheet, type RichTextMode } from '@makeswift/controls';
import { RichTextV2Plugin } from './plugin';
import { RichTextV2Control } from './control';
type DataType = z.infer<typeof Definition.schema.data>;
type DataV2Type = z.infer<typeof Definition.schema.dataV2>;
type InstanceType = RichTextV2Control;
type UserConfig = z.infer<typeof Definition.schema.userConfig>;
type Config = UserConfig & {
    defaultValue: string;
    plugins: RichTextV2Plugin[];
};
declare class Definition extends BaseRichTextDefinition<ReactNode, Config, InstanceType> {
    constructor({ mode, defaultValue }: UserConfig, plugins?: RichTextV2Plugin[]);
    static generateParagraph(): string;
    static deserialize(data: DeserializedRecord, deserializeCallback: (r: DeserializedRecord) => ControlDefinition): RichTextV2Definition;
    static fullSchema<S extends SchemaTypeAny>({ pluginDef }: {
        pluginDef: S;
    }): {
        config: z.ZodObject<{
            mode: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"makeswift::controls::rich-text-v2::mode::inline">, z.ZodLiteral<"makeswift::controls::rich-text-v2::mode::block">]>>;
            defaultValue: z.ZodString;
            plugins: z.ZodArray<z.ZodObject<{
                control: z.ZodOptional<z.ZodObject<{
                    definition: S;
                }, "strip", z.ZodTypeAny, { [k_1 in keyof z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
                    definition: S;
                }>, undefined extends S["_output"] ? never : "definition">]: z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
                    definition: S;
                }>, undefined extends S["_output"] ? never : "definition">[k_1]; }, { [k_2 in keyof z.baseObjectInputType<{
                    definition: S;
                }>]: z.baseObjectInputType<{
                    definition: S;
                }>[k_2]; }>>;
            }, "strip", z.ZodTypeAny, { [k_1_1 in keyof z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
                control: z.ZodOptional<z.ZodObject<{
                    definition: S;
                }, "strip", z.ZodTypeAny, { [k_1 in keyof z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
                    definition: S;
                }>, undefined extends S["_output"] ? never : "definition">]: z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
                    definition: S;
                }>, undefined extends S["_output"] ? never : "definition">[k_1]; }, { [k_2 in keyof z.baseObjectInputType<{
                    definition: S;
                }>]: z.baseObjectInputType<{
                    definition: S;
                }>[k_2]; }>>;
            }>, undefined extends { [k_1 in keyof z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
                definition: S;
            }>, undefined extends S["_output"] ? never : "definition">]: z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
                definition: S;
            }>, undefined extends S["_output"] ? never : "definition">[k_1]; } | undefined ? never : "control">]: z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
                control: z.ZodOptional<z.ZodObject<{
                    definition: S;
                }, "strip", z.ZodTypeAny, { [k_1 in keyof z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
                    definition: S;
                }>, undefined extends S["_output"] ? never : "definition">]: z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
                    definition: S;
                }>, undefined extends S["_output"] ? never : "definition">[k_1]; }, { [k_2 in keyof z.baseObjectInputType<{
                    definition: S;
                }>]: z.baseObjectInputType<{
                    definition: S;
                }>[k_2]; }>>;
            }>, undefined extends { [k_1 in keyof z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
                definition: S;
            }>, undefined extends S["_output"] ? never : "definition">]: z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
                definition: S;
            }>, undefined extends S["_output"] ? never : "definition">[k_1]; } | undefined ? never : "control">[k_1_1]; }, { [k_2_1 in keyof z.baseObjectInputType<{
                control: z.ZodOptional<z.ZodObject<{
                    definition: S;
                }, "strip", z.ZodTypeAny, { [k_1 in keyof z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
                    definition: S;
                }>, undefined extends S["_output"] ? never : "definition">]: z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
                    definition: S;
                }>, undefined extends S["_output"] ? never : "definition">[k_1]; }, { [k_2 in keyof z.baseObjectInputType<{
                    definition: S;
                }>]: z.baseObjectInputType<{
                    definition: S;
                }>[k_2]; }>>;
            }>]: z.baseObjectInputType<{
                control: z.ZodOptional<z.ZodObject<{
                    definition: S;
                }, "strip", z.ZodTypeAny, { [k_1 in keyof z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
                    definition: S;
                }>, undefined extends S["_output"] ? never : "definition">]: z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
                    definition: S;
                }>, undefined extends S["_output"] ? never : "definition">[k_1]; }, { [k_2 in keyof z.baseObjectInputType<{
                    definition: S;
                }>]: z.baseObjectInputType<{
                    definition: S;
                }>[k_2]; }>>;
            }>[k_2_1]; }>, "many">;
        }, "strip", z.ZodTypeAny, {
            defaultValue: string;
            plugins: { [k_1_1 in keyof z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
                control: z.ZodOptional<z.ZodObject<{
                    definition: S;
                }, "strip", z.ZodTypeAny, { [k_1 in keyof z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
                    definition: S;
                }>, undefined extends S["_output"] ? never : "definition">]: z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
                    definition: S;
                }>, undefined extends S["_output"] ? never : "definition">[k_1]; }, { [k_2 in keyof z.baseObjectInputType<{
                    definition: S;
                }>]: z.baseObjectInputType<{
                    definition: S;
                }>[k_2]; }>>;
            }>, undefined extends { [k_1 in keyof z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
                definition: S;
            }>, undefined extends S["_output"] ? never : "definition">]: z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
                definition: S;
            }>, undefined extends S["_output"] ? never : "definition">[k_1]; } | undefined ? never : "control">]: z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
                control: z.ZodOptional<z.ZodObject<{
                    definition: S;
                }, "strip", z.ZodTypeAny, { [k_1 in keyof z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
                    definition: S;
                }>, undefined extends S["_output"] ? never : "definition">]: z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
                    definition: S;
                }>, undefined extends S["_output"] ? never : "definition">[k_1]; }, { [k_2 in keyof z.baseObjectInputType<{
                    definition: S;
                }>]: z.baseObjectInputType<{
                    definition: S;
                }>[k_2]; }>>;
            }>, undefined extends { [k_1 in keyof z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
                definition: S;
            }>, undefined extends S["_output"] ? never : "definition">]: z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
                definition: S;
            }>, undefined extends S["_output"] ? never : "definition">[k_1]; } | undefined ? never : "control">[k_1_1]; }[];
            mode?: "makeswift::controls::rich-text-v2::mode::inline" | "makeswift::controls::rich-text-v2::mode::block" | undefined;
        }, {
            defaultValue: string;
            plugins: { [k_2_1 in keyof z.baseObjectInputType<{
                control: z.ZodOptional<z.ZodObject<{
                    definition: S;
                }, "strip", z.ZodTypeAny, { [k_1 in keyof z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
                    definition: S;
                }>, undefined extends S["_output"] ? never : "definition">]: z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
                    definition: S;
                }>, undefined extends S["_output"] ? never : "definition">[k_1]; }, { [k_2 in keyof z.baseObjectInputType<{
                    definition: S;
                }>]: z.baseObjectInputType<{
                    definition: S;
                }>[k_2]; }>>;
            }>]: z.baseObjectInputType<{
                control: z.ZodOptional<z.ZodObject<{
                    definition: S;
                }, "strip", z.ZodTypeAny, { [k_1 in keyof z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
                    definition: S;
                }>, undefined extends S["_output"] ? never : "definition">]: z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
                    definition: S;
                }>, undefined extends S["_output"] ? never : "definition">[k_1]; }, { [k_2 in keyof z.baseObjectInputType<{
                    definition: S;
                }>]: z.baseObjectInputType<{
                    definition: S;
                }>[k_2]; }>>;
            }>[k_2_1]; }[];
            mode?: "makeswift::controls::rich-text-v2::mode::inline" | "makeswift::controls::rich-text-v2::mode::block" | undefined;
        }>;
        definition: z.ZodObject<{
            type: z.ZodLiteral<"makeswift::controls::rich-text-v2">;
            config: z.ZodObject<{
                mode: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"makeswift::controls::rich-text-v2::mode::inline">, z.ZodLiteral<"makeswift::controls::rich-text-v2::mode::block">]>>;
                defaultValue: z.ZodString;
                plugins: z.ZodArray<z.ZodObject<{
                    control: z.ZodOptional<z.ZodObject<{
                        definition: S;
                    }, "strip", z.ZodTypeAny, { [k_1 in keyof z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
                        definition: S;
                    }>, undefined extends S["_output"] ? never : "definition">]: z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
                        definition: S;
                    }>, undefined extends S["_output"] ? never : "definition">[k_1]; }, { [k_2 in keyof z.baseObjectInputType<{
                        definition: S;
                    }>]: z.baseObjectInputType<{
                        definition: S;
                    }>[k_2]; }>>;
                }, "strip", z.ZodTypeAny, { [k_1_1 in keyof z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
                    control: z.ZodOptional<z.ZodObject<{
                        definition: S;
                    }, "strip", z.ZodTypeAny, { [k_1 in keyof z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
                        definition: S;
                    }>, undefined extends S["_output"] ? never : "definition">]: z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
                        definition: S;
                    }>, undefined extends S["_output"] ? never : "definition">[k_1]; }, { [k_2 in keyof z.baseObjectInputType<{
                        definition: S;
                    }>]: z.baseObjectInputType<{
                        definition: S;
                    }>[k_2]; }>>;
                }>, undefined extends { [k_1 in keyof z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
                    definition: S;
                }>, undefined extends S["_output"] ? never : "definition">]: z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
                    definition: S;
                }>, undefined extends S["_output"] ? never : "definition">[k_1]; } | undefined ? never : "control">]: z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
                    control: z.ZodOptional<z.ZodObject<{
                        definition: S;
                    }, "strip", z.ZodTypeAny, { [k_1 in keyof z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
                        definition: S;
                    }>, undefined extends S["_output"] ? never : "definition">]: z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
                        definition: S;
                    }>, undefined extends S["_output"] ? never : "definition">[k_1]; }, { [k_2 in keyof z.baseObjectInputType<{
                        definition: S;
                    }>]: z.baseObjectInputType<{
                        definition: S;
                    }>[k_2]; }>>;
                }>, undefined extends { [k_1 in keyof z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
                    definition: S;
                }>, undefined extends S["_output"] ? never : "definition">]: z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
                    definition: S;
                }>, undefined extends S["_output"] ? never : "definition">[k_1]; } | undefined ? never : "control">[k_1_1]; }, { [k_2_1 in keyof z.baseObjectInputType<{
                    control: z.ZodOptional<z.ZodObject<{
                        definition: S;
                    }, "strip", z.ZodTypeAny, { [k_1 in keyof z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
                        definition: S;
                    }>, undefined extends S["_output"] ? never : "definition">]: z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
                        definition: S;
                    }>, undefined extends S["_output"] ? never : "definition">[k_1]; }, { [k_2 in keyof z.baseObjectInputType<{
                        definition: S;
                    }>]: z.baseObjectInputType<{
                        definition: S;
                    }>[k_2]; }>>;
                }>]: z.baseObjectInputType<{
                    control: z.ZodOptional<z.ZodObject<{
                        definition: S;
                    }, "strip", z.ZodTypeAny, { [k_1 in keyof z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
                        definition: S;
                    }>, undefined extends S["_output"] ? never : "definition">]: z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
                        definition: S;
                    }>, undefined extends S["_output"] ? never : "definition">[k_1]; }, { [k_2 in keyof z.baseObjectInputType<{
                        definition: S;
                    }>]: z.baseObjectInputType<{
                        definition: S;
                    }>[k_2]; }>>;
                }>[k_2_1]; }>, "many">;
            }, "strip", z.ZodTypeAny, {
                defaultValue: string;
                plugins: { [k_1_1 in keyof z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
                    control: z.ZodOptional<z.ZodObject<{
                        definition: S;
                    }, "strip", z.ZodTypeAny, { [k_1 in keyof z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
                        definition: S;
                    }>, undefined extends S["_output"] ? never : "definition">]: z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
                        definition: S;
                    }>, undefined extends S["_output"] ? never : "definition">[k_1]; }, { [k_2 in keyof z.baseObjectInputType<{
                        definition: S;
                    }>]: z.baseObjectInputType<{
                        definition: S;
                    }>[k_2]; }>>;
                }>, undefined extends { [k_1 in keyof z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
                    definition: S;
                }>, undefined extends S["_output"] ? never : "definition">]: z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
                    definition: S;
                }>, undefined extends S["_output"] ? never : "definition">[k_1]; } | undefined ? never : "control">]: z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
                    control: z.ZodOptional<z.ZodObject<{
                        definition: S;
                    }, "strip", z.ZodTypeAny, { [k_1 in keyof z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
                        definition: S;
                    }>, undefined extends S["_output"] ? never : "definition">]: z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
                        definition: S;
                    }>, undefined extends S["_output"] ? never : "definition">[k_1]; }, { [k_2 in keyof z.baseObjectInputType<{
                        definition: S;
                    }>]: z.baseObjectInputType<{
                        definition: S;
                    }>[k_2]; }>>;
                }>, undefined extends { [k_1 in keyof z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
                    definition: S;
                }>, undefined extends S["_output"] ? never : "definition">]: z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
                    definition: S;
                }>, undefined extends S["_output"] ? never : "definition">[k_1]; } | undefined ? never : "control">[k_1_1]; }[];
                mode?: "makeswift::controls::rich-text-v2::mode::inline" | "makeswift::controls::rich-text-v2::mode::block" | undefined;
            }, {
                defaultValue: string;
                plugins: { [k_2_1 in keyof z.baseObjectInputType<{
                    control: z.ZodOptional<z.ZodObject<{
                        definition: S;
                    }, "strip", z.ZodTypeAny, { [k_1 in keyof z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
                        definition: S;
                    }>, undefined extends S["_output"] ? never : "definition">]: z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
                        definition: S;
                    }>, undefined extends S["_output"] ? never : "definition">[k_1]; }, { [k_2 in keyof z.baseObjectInputType<{
                        definition: S;
                    }>]: z.baseObjectInputType<{
                        definition: S;
                    }>[k_2]; }>>;
                }>]: z.baseObjectInputType<{
                    control: z.ZodOptional<z.ZodObject<{
                        definition: S;
                    }, "strip", z.ZodTypeAny, { [k_1 in keyof z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
                        definition: S;
                    }>, undefined extends S["_output"] ? never : "definition">]: z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
                        definition: S;
                    }>, undefined extends S["_output"] ? never : "definition">[k_1]; }, { [k_2 in keyof z.baseObjectInputType<{
                        definition: S;
                    }>]: z.baseObjectInputType<{
                        definition: S;
                    }>[k_2]; }>>;
                }>[k_2_1]; }[];
                mode?: "makeswift::controls::rich-text-v2::mode::inline" | "makeswift::controls::rich-text-v2::mode::block" | undefined;
            }>;
        }, "strip", z.ZodTypeAny, {
            type: "makeswift::controls::rich-text-v2";
            config: {
                defaultValue: string;
                plugins: { [k_1_1 in keyof z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
                    control: z.ZodOptional<z.ZodObject<{
                        definition: S;
                    }, "strip", z.ZodTypeAny, { [k_1 in keyof z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
                        definition: S;
                    }>, undefined extends S["_output"] ? never : "definition">]: z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
                        definition: S;
                    }>, undefined extends S["_output"] ? never : "definition">[k_1]; }, { [k_2 in keyof z.baseObjectInputType<{
                        definition: S;
                    }>]: z.baseObjectInputType<{
                        definition: S;
                    }>[k_2]; }>>;
                }>, undefined extends { [k_1 in keyof z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
                    definition: S;
                }>, undefined extends S["_output"] ? never : "definition">]: z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
                    definition: S;
                }>, undefined extends S["_output"] ? never : "definition">[k_1]; } | undefined ? never : "control">]: z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
                    control: z.ZodOptional<z.ZodObject<{
                        definition: S;
                    }, "strip", z.ZodTypeAny, { [k_1 in keyof z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
                        definition: S;
                    }>, undefined extends S["_output"] ? never : "definition">]: z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
                        definition: S;
                    }>, undefined extends S["_output"] ? never : "definition">[k_1]; }, { [k_2 in keyof z.baseObjectInputType<{
                        definition: S;
                    }>]: z.baseObjectInputType<{
                        definition: S;
                    }>[k_2]; }>>;
                }>, undefined extends { [k_1 in keyof z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
                    definition: S;
                }>, undefined extends S["_output"] ? never : "definition">]: z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
                    definition: S;
                }>, undefined extends S["_output"] ? never : "definition">[k_1]; } | undefined ? never : "control">[k_1_1]; }[];
                mode?: "makeswift::controls::rich-text-v2::mode::inline" | "makeswift::controls::rich-text-v2::mode::block" | undefined;
            };
        }, {
            type: "makeswift::controls::rich-text-v2";
            config: {
                defaultValue: string;
                plugins: { [k_2_1 in keyof z.baseObjectInputType<{
                    control: z.ZodOptional<z.ZodObject<{
                        definition: S;
                    }, "strip", z.ZodTypeAny, { [k_1 in keyof z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
                        definition: S;
                    }>, undefined extends S["_output"] ? never : "definition">]: z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
                        definition: S;
                    }>, undefined extends S["_output"] ? never : "definition">[k_1]; }, { [k_2 in keyof z.baseObjectInputType<{
                        definition: S;
                    }>]: z.baseObjectInputType<{
                        definition: S;
                    }>[k_2]; }>>;
                }>]: z.baseObjectInputType<{
                    control: z.ZodOptional<z.ZodObject<{
                        definition: S;
                    }, "strip", z.ZodTypeAny, { [k_1 in keyof z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
                        definition: S;
                    }>, undefined extends S["_output"] ? never : "definition">]: z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
                        definition: S;
                    }>, undefined extends S["_output"] ? never : "definition">[k_1]; }, { [k_2 in keyof z.baseObjectInputType<{
                        definition: S;
                    }>]: z.baseObjectInputType<{
                        definition: S;
                    }>[k_2]; }>>;
                }>[k_2_1]; }[];
                mode?: "makeswift::controls::rich-text-v2::mode::inline" | "makeswift::controls::rich-text-v2::mode::block" | undefined;
            };
        }>;
        type: z.ZodLiteral<"makeswift::controls::rich-text-v2">;
        data: z.ZodUnion<[z.ZodObject<{
            object: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"value">, z.ZodLiteral<"text">, z.ZodLiteral<"inline">, z.ZodLiteral<"block">, z.ZodLiteral<"document">, z.ZodLiteral<"leaf">, z.ZodLiteral<"selection">, z.ZodLiteral<"mark">, z.ZodLiteral<"range">, z.ZodLiteral<"decoration">, z.ZodLiteral<"annotation">, z.ZodLiteral<"point">, z.ZodLiteral<"operation">, z.ZodUndefined]>>;
            document: z.ZodOptional<z.ZodType<{
                object?: "document" | undefined;
                nodes?: (any | {
                    object?: "block" | undefined;
                    type: import("@makeswift/controls/dist/types/controls/rich-text/slate").BlockType;
                    key?: string | undefined;
                    nodes?: (any | {
                        object?: "inline" | undefined;
                        type: import("@makeswift/controls/dist/types/controls/rich-text/slate").InlineType;
                        key?: string | undefined;
                        nodes?: (any | {
                            object?: "text" | undefined;
                            key?: string | undefined;
                            text?: string | undefined;
                            marks?: {
                                object?: "mark" | undefined;
                                type: string;
                                data?: {
                                    [x: string]: any;
                                } | undefined;
                            }[] | undefined;
                        })[] | undefined;
                        data?: {
                            [x: string]: any;
                        } | undefined;
                    } | {
                        object?: "text" | undefined;
                        key?: string | undefined;
                        text?: string | undefined;
                        marks?: {
                            object?: "mark" | undefined;
                            type: string;
                            data?: {
                                [x: string]: any;
                            } | undefined;
                        }[] | undefined;
                    })[] | undefined;
                    data?: {
                        [x: string]: any;
                    } | undefined;
                } | {
                    object?: "inline" | undefined;
                    type: import("@makeswift/controls/dist/types/controls/rich-text/slate").InlineType;
                    key?: string | undefined;
                    nodes?: (any | {
                        object?: "text" | undefined;
                        key?: string | undefined;
                        text?: string | undefined;
                        marks?: {
                            object?: "mark" | undefined;
                            type: string;
                            data?: {
                                [x: string]: any;
                            } | undefined;
                        }[] | undefined;
                    })[] | undefined;
                    data?: {
                        [x: string]: any;
                    } | undefined;
                } | {
                    object?: "text" | undefined;
                    key?: string | undefined;
                    text?: string | undefined;
                    marks?: {
                        object?: "mark" | undefined;
                        type: string;
                        data?: {
                            [x: string]: any;
                        } | undefined;
                    }[] | undefined;
                })[] | undefined;
                key?: string | undefined;
                data?: {
                    [x: string]: any;
                } | undefined;
            }, z.ZodTypeDef, {
                object?: "document" | undefined;
                nodes?: (any | {
                    object?: "block" | undefined;
                    type: import("@makeswift/controls/dist/types/controls/rich-text/slate").BlockType;
                    key?: string | undefined;
                    nodes?: (any | {
                        object?: "inline" | undefined;
                        type: import("@makeswift/controls/dist/types/controls/rich-text/slate").InlineType;
                        key?: string | undefined;
                        nodes?: (any | {
                            object?: "text" | undefined;
                            key?: string | undefined;
                            text?: string | undefined;
                            marks?: {
                                object?: "mark" | undefined;
                                type: string;
                                data?: {
                                    [x: string]: any;
                                } | undefined;
                            }[] | undefined;
                        })[] | undefined;
                        data?: {
                            [x: string]: any;
                        } | undefined;
                    } | {
                        object?: "text" | undefined;
                        key?: string | undefined;
                        text?: string | undefined;
                        marks?: {
                            object?: "mark" | undefined;
                            type: string;
                            data?: {
                                [x: string]: any;
                            } | undefined;
                        }[] | undefined;
                    })[] | undefined;
                    data?: {
                        [x: string]: any;
                    } | undefined;
                } | {
                    object?: "inline" | undefined;
                    type: import("@makeswift/controls/dist/types/controls/rich-text/slate").InlineType;
                    key?: string | undefined;
                    nodes?: (any | {
                        object?: "text" | undefined;
                        key?: string | undefined;
                        text?: string | undefined;
                        marks?: {
                            object?: "mark" | undefined;
                            type: string;
                            data?: {
                                [x: string]: any;
                            } | undefined;
                        }[] | undefined;
                    })[] | undefined;
                    data?: {
                        [x: string]: any;
                    } | undefined;
                } | {
                    object?: "text" | undefined;
                    key?: string | undefined;
                    text?: string | undefined;
                    marks?: {
                        object?: "mark" | undefined;
                        type: string;
                        data?: {
                            [x: string]: any;
                        } | undefined;
                    }[] | undefined;
                })[] | undefined;
                key?: string | undefined;
                data?: {
                    [x: string]: any;
                } | undefined;
            }>>;
            selection: z.ZodOptional<z.ZodType<{
                object?: "selection" | undefined;
                anchor?: {
                    object?: "point" | undefined;
                    key?: string | undefined;
                    offset?: number | undefined;
                    path?: number[] | undefined;
                } | undefined;
                focus?: {
                    object?: "point" | undefined;
                    key?: string | undefined;
                    offset?: number | undefined;
                    path?: number[] | undefined;
                } | undefined;
                isFocused?: boolean | undefined;
                marks?: {
                    object?: "mark" | undefined;
                    type: string;
                    data?: {
                        [x: string]: any;
                    } | undefined;
                }[] | undefined;
            }, z.ZodTypeDef, {
                object?: "selection" | undefined;
                anchor?: {
                    object?: "point" | undefined;
                    key?: string | undefined;
                    offset?: number | undefined;
                    path?: number[] | undefined;
                } | undefined;
                focus?: {
                    object?: "point" | undefined;
                    key?: string | undefined;
                    offset?: number | undefined;
                    path?: number[] | undefined;
                } | undefined;
                isFocused?: boolean | undefined;
                marks?: {
                    object?: "mark" | undefined;
                    type: string;
                    data?: {
                        [x: string]: any;
                    } | undefined;
                }[] | undefined;
            }>>;
            annotations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<{
                object?: "annotation" | undefined;
                key: string;
                type: string;
                data?: {
                    [x: string]: any;
                } | undefined;
                anchor?: {
                    object?: "point" | undefined;
                    key?: string | undefined;
                    offset?: number | undefined;
                    path?: number[] | undefined;
                } | undefined;
                focus?: {
                    object?: "point" | undefined;
                    key?: string | undefined;
                    offset?: number | undefined;
                    path?: number[] | undefined;
                } | undefined;
            }, z.ZodTypeDef, {
                object?: "annotation" | undefined;
                key: string;
                type: string;
                data?: {
                    [x: string]: any;
                } | undefined;
                anchor?: {
                    object?: "point" | undefined;
                    key?: string | undefined;
                    offset?: number | undefined;
                    path?: number[] | undefined;
                } | undefined;
                focus?: {
                    object?: "point" | undefined;
                    key?: string | undefined;
                    offset?: number | undefined;
                    path?: number[] | undefined;
                } | undefined;
            }>>>;
            data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
        }, "strip", z.ZodTypeAny, {
            object?: "value" | "block" | "text" | "inline" | "document" | "leaf" | "selection" | "mark" | "range" | "decoration" | "annotation" | "point" | "operation" | undefined;
            document?: {
                object?: "document" | undefined;
                nodes?: (any | {
                    object?: "block" | undefined;
                    type: import("@makeswift/controls/dist/types/controls/rich-text/slate").BlockType;
                    key?: string | undefined;
                    nodes?: (any | {
                        object?: "inline" | undefined;
                        type: import("@makeswift/controls/dist/types/controls/rich-text/slate").InlineType;
                        key?: string | undefined;
                        nodes?: (any | {
                            object?: "text" | undefined;
                            key?: string | undefined;
                            text?: string | undefined;
                            marks?: {
                                object?: "mark" | undefined;
                                type: string;
                                data?: {
                                    [x: string]: any;
                                } | undefined;
                            }[] | undefined;
                        })[] | undefined;
                        data?: {
                            [x: string]: any;
                        } | undefined;
                    } | {
                        object?: "text" | undefined;
                        key?: string | undefined;
                        text?: string | undefined;
                        marks?: {
                            object?: "mark" | undefined;
                            type: string;
                            data?: {
                                [x: string]: any;
                            } | undefined;
                        }[] | undefined;
                    })[] | undefined;
                    data?: {
                        [x: string]: any;
                    } | undefined;
                } | {
                    object?: "inline" | undefined;
                    type: import("@makeswift/controls/dist/types/controls/rich-text/slate").InlineType;
                    key?: string | undefined;
                    nodes?: (any | {
                        object?: "text" | undefined;
                        key?: string | undefined;
                        text?: string | undefined;
                        marks?: {
                            object?: "mark" | undefined;
                            type: string;
                            data?: {
                                [x: string]: any;
                            } | undefined;
                        }[] | undefined;
                    })[] | undefined;
                    data?: {
                        [x: string]: any;
                    } | undefined;
                } | {
                    object?: "text" | undefined;
                    key?: string | undefined;
                    text?: string | undefined;
                    marks?: {
                        object?: "mark" | undefined;
                        type: string;
                        data?: {
                            [x: string]: any;
                        } | undefined;
                    }[] | undefined;
                })[] | undefined;
                key?: string | undefined;
                data?: {
                    [x: string]: any;
                } | undefined;
            } | undefined;
            selection?: {
                object?: "selection" | undefined;
                anchor?: {
                    object?: "point" | undefined;
                    key?: string | undefined;
                    offset?: number | undefined;
                    path?: number[] | undefined;
                } | undefined;
                focus?: {
                    object?: "point" | undefined;
                    key?: string | undefined;
                    offset?: number | undefined;
                    path?: number[] | undefined;
                } | undefined;
                isFocused?: boolean | undefined;
                marks?: {
                    object?: "mark" | undefined;
                    type: string;
                    data?: {
                        [x: string]: any;
                    } | undefined;
                }[] | undefined;
            } | undefined;
            annotations?: Record<string, {
                object?: "annotation" | undefined;
                key: string;
                type: string;
                data?: {
                    [x: string]: any;
                } | undefined;
                anchor?: {
                    object?: "point" | undefined;
                    key?: string | undefined;
                    offset?: number | undefined;
                    path?: number[] | undefined;
                } | undefined;
                focus?: {
                    object?: "point" | undefined;
                    key?: string | undefined;
                    offset?: number | undefined;
                    path?: number[] | undefined;
                } | undefined;
            }> | undefined;
            data?: Record<string, any> | undefined;
        }, {
            object?: "value" | "block" | "text" | "inline" | "document" | "leaf" | "selection" | "mark" | "range" | "decoration" | "annotation" | "point" | "operation" | undefined;
            document?: {
                object?: "document" | undefined;
                nodes?: (any | {
                    object?: "block" | undefined;
                    type: import("@makeswift/controls/dist/types/controls/rich-text/slate").BlockType;
                    key?: string | undefined;
                    nodes?: (any | {
                        object?: "inline" | undefined;
                        type: import("@makeswift/controls/dist/types/controls/rich-text/slate").InlineType;
                        key?: string | undefined;
                        nodes?: (any | {
                            object?: "text" | undefined;
                            key?: string | undefined;
                            text?: string | undefined;
                            marks?: {
                                object?: "mark" | undefined;
                                type: string;
                                data?: {
                                    [x: string]: any;
                                } | undefined;
                            }[] | undefined;
                        })[] | undefined;
                        data?: {
                            [x: string]: any;
                        } | undefined;
                    } | {
                        object?: "text" | undefined;
                        key?: string | undefined;
                        text?: string | undefined;
                        marks?: {
                            object?: "mark" | undefined;
                            type: string;
                            data?: {
                                [x: string]: any;
                            } | undefined;
                        }[] | undefined;
                    })[] | undefined;
                    data?: {
                        [x: string]: any;
                    } | undefined;
                } | {
                    object?: "inline" | undefined;
                    type: import("@makeswift/controls/dist/types/controls/rich-text/slate").InlineType;
                    key?: string | undefined;
                    nodes?: (any | {
                        object?: "text" | undefined;
                        key?: string | undefined;
                        text?: string | undefined;
                        marks?: {
                            object?: "mark" | undefined;
                            type: string;
                            data?: {
                                [x: string]: any;
                            } | undefined;
                        }[] | undefined;
                    })[] | undefined;
                    data?: {
                        [x: string]: any;
                    } | undefined;
                } | {
                    object?: "text" | undefined;
                    key?: string | undefined;
                    text?: string | undefined;
                    marks?: {
                        object?: "mark" | undefined;
                        type: string;
                        data?: {
                            [x: string]: any;
                        } | undefined;
                    }[] | undefined;
                })[] | undefined;
                key?: string | undefined;
                data?: {
                    [x: string]: any;
                } | undefined;
            } | undefined;
            selection?: {
                object?: "selection" | undefined;
                anchor?: {
                    object?: "point" | undefined;
                    key?: string | undefined;
                    offset?: number | undefined;
                    path?: number[] | undefined;
                } | undefined;
                focus?: {
                    object?: "point" | undefined;
                    key?: string | undefined;
                    offset?: number | undefined;
                    path?: number[] | undefined;
                } | undefined;
                isFocused?: boolean | undefined;
                marks?: {
                    object?: "mark" | undefined;
                    type: string;
                    data?: {
                        [x: string]: any;
                    } | undefined;
                }[] | undefined;
            } | undefined;
            annotations?: Record<string, {
                object?: "annotation" | undefined;
                key: string;
                type: string;
                data?: {
                    [x: string]: any;
                } | undefined;
                anchor?: {
                    object?: "point" | undefined;
                    key?: string | undefined;
                    offset?: number | undefined;
                    path?: number[] | undefined;
                } | undefined;
                focus?: {
                    object?: "point" | undefined;
                    key?: string | undefined;
                    offset?: number | undefined;
                    path?: number[] | undefined;
                } | undefined;
            }> | undefined;
            data?: Record<string, any> | undefined;
        }>, z.ZodObject<{
            type: z.ZodLiteral<"makeswift::controls::rich-text-v2">;
            version: z.ZodLiteral<2>;
            descendants: z.ZodArray<SchemaType<import("slate").Descendant>, "many">;
            key: z.ZodString;
        }, "strip", z.ZodTypeAny, {
            type: "makeswift::controls::rich-text-v2";
            key: string;
            version: 2;
            descendants: import("slate").Descendant[];
        }, {
            type: "makeswift::controls::rich-text-v2";
            key: string;
            version: 2;
            descendants: import("slate").Descendant[];
        }>]>;
        dataV1: z.ZodObject<{
            object: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"value">, z.ZodLiteral<"text">, z.ZodLiteral<"inline">, z.ZodLiteral<"block">, z.ZodLiteral<"document">, z.ZodLiteral<"leaf">, z.ZodLiteral<"selection">, z.ZodLiteral<"mark">, z.ZodLiteral<"range">, z.ZodLiteral<"decoration">, z.ZodLiteral<"annotation">, z.ZodLiteral<"point">, z.ZodLiteral<"operation">, z.ZodUndefined]>>;
            document: z.ZodOptional<z.ZodType<{
                object?: "document" | undefined;
                nodes?: (any | {
                    object?: "block" | undefined;
                    type: import("@makeswift/controls/dist/types/controls/rich-text/slate").BlockType;
                    key?: string | undefined;
                    nodes?: (any | {
                        object?: "inline" | undefined;
                        type: import("@makeswift/controls/dist/types/controls/rich-text/slate").InlineType;
                        key?: string | undefined;
                        nodes?: (any | {
                            object?: "text" | undefined;
                            key?: string | undefined;
                            text?: string | undefined;
                            marks?: {
                                object?: "mark" | undefined;
                                type: string;
                                data?: {
                                    [x: string]: any;
                                } | undefined;
                            }[] | undefined;
                        })[] | undefined;
                        data?: {
                            [x: string]: any;
                        } | undefined;
                    } | {
                        object?: "text" | undefined;
                        key?: string | undefined;
                        text?: string | undefined;
                        marks?: {
                            object?: "mark" | undefined;
                            type: string;
                            data?: {
                                [x: string]: any;
                            } | undefined;
                        }[] | undefined;
                    })[] | undefined;
                    data?: {
                        [x: string]: any;
                    } | undefined;
                } | {
                    object?: "inline" | undefined;
                    type: import("@makeswift/controls/dist/types/controls/rich-text/slate").InlineType;
                    key?: string | undefined;
                    nodes?: (any | {
                        object?: "text" | undefined;
                        key?: string | undefined;
                        text?: string | undefined;
                        marks?: {
                            object?: "mark" | undefined;
                            type: string;
                            data?: {
                                [x: string]: any;
                            } | undefined;
                        }[] | undefined;
                    })[] | undefined;
                    data?: {
                        [x: string]: any;
                    } | undefined;
                } | {
                    object?: "text" | undefined;
                    key?: string | undefined;
                    text?: string | undefined;
                    marks?: {
                        object?: "mark" | undefined;
                        type: string;
                        data?: {
                            [x: string]: any;
                        } | undefined;
                    }[] | undefined;
                })[] | undefined;
                key?: string | undefined;
                data?: {
                    [x: string]: any;
                } | undefined;
            }, z.ZodTypeDef, {
                object?: "document" | undefined;
                nodes?: (any | {
                    object?: "block" | undefined;
                    type: import("@makeswift/controls/dist/types/controls/rich-text/slate").BlockType;
                    key?: string | undefined;
                    nodes?: (any | {
                        object?: "inline" | undefined;
                        type: import("@makeswift/controls/dist/types/controls/rich-text/slate").InlineType;
                        key?: string | undefined;
                        nodes?: (any | {
                            object?: "text" | undefined;
                            key?: string | undefined;
                            text?: string | undefined;
                            marks?: {
                                object?: "mark" | undefined;
                                type: string;
                                data?: {
                                    [x: string]: any;
                                } | undefined;
                            }[] | undefined;
                        })[] | undefined;
                        data?: {
                            [x: string]: any;
                        } | undefined;
                    } | {
                        object?: "text" | undefined;
                        key?: string | undefined;
                        text?: string | undefined;
                        marks?: {
                            object?: "mark" | undefined;
                            type: string;
                            data?: {
                                [x: string]: any;
                            } | undefined;
                        }[] | undefined;
                    })[] | undefined;
                    data?: {
                        [x: string]: any;
                    } | undefined;
                } | {
                    object?: "inline" | undefined;
                    type: import("@makeswift/controls/dist/types/controls/rich-text/slate").InlineType;
                    key?: string | undefined;
                    nodes?: (any | {
                        object?: "text" | undefined;
                        key?: string | undefined;
                        text?: string | undefined;
                        marks?: {
                            object?: "mark" | undefined;
                            type: string;
                            data?: {
                                [x: string]: any;
                            } | undefined;
                        }[] | undefined;
                    })[] | undefined;
                    data?: {
                        [x: string]: any;
                    } | undefined;
                } | {
                    object?: "text" | undefined;
                    key?: string | undefined;
                    text?: string | undefined;
                    marks?: {
                        object?: "mark" | undefined;
                        type: string;
                        data?: {
                            [x: string]: any;
                        } | undefined;
                    }[] | undefined;
                })[] | undefined;
                key?: string | undefined;
                data?: {
                    [x: string]: any;
                } | undefined;
            }>>;
            selection: z.ZodOptional<z.ZodType<{
                object?: "selection" | undefined;
                anchor?: {
                    object?: "point" | undefined;
                    key?: string | undefined;
                    offset?: number | undefined;
                    path?: number[] | undefined;
                } | undefined;
                focus?: {
                    object?: "point" | undefined;
                    key?: string | undefined;
                    offset?: number | undefined;
                    path?: number[] | undefined;
                } | undefined;
                isFocused?: boolean | undefined;
                marks?: {
                    object?: "mark" | undefined;
                    type: string;
                    data?: {
                        [x: string]: any;
                    } | undefined;
                }[] | undefined;
            }, z.ZodTypeDef, {
                object?: "selection" | undefined;
                anchor?: {
                    object?: "point" | undefined;
                    key?: string | undefined;
                    offset?: number | undefined;
                    path?: number[] | undefined;
                } | undefined;
                focus?: {
                    object?: "point" | undefined;
                    key?: string | undefined;
                    offset?: number | undefined;
                    path?: number[] | undefined;
                } | undefined;
                isFocused?: boolean | undefined;
                marks?: {
                    object?: "mark" | undefined;
                    type: string;
                    data?: {
                        [x: string]: any;
                    } | undefined;
                }[] | undefined;
            }>>;
            annotations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<{
                object?: "annotation" | undefined;
                key: string;
                type: string;
                data?: {
                    [x: string]: any;
                } | undefined;
                anchor?: {
                    object?: "point" | undefined;
                    key?: string | undefined;
                    offset?: number | undefined;
                    path?: number[] | undefined;
                } | undefined;
                focus?: {
                    object?: "point" | undefined;
                    key?: string | undefined;
                    offset?: number | undefined;
                    path?: number[] | undefined;
                } | undefined;
            }, z.ZodTypeDef, {
                object?: "annotation" | undefined;
                key: string;
                type: string;
                data?: {
                    [x: string]: any;
                } | undefined;
                anchor?: {
                    object?: "point" | undefined;
                    key?: string | undefined;
                    offset?: number | undefined;
                    path?: number[] | undefined;
                } | undefined;
                focus?: {
                    object?: "point" | undefined;
                    key?: string | undefined;
                    offset?: number | undefined;
                    path?: number[] | undefined;
                } | undefined;
            }>>>;
            data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
        }, "strip", z.ZodTypeAny, {
            object?: "value" | "block" | "text" | "inline" | "document" | "leaf" | "selection" | "mark" | "range" | "decoration" | "annotation" | "point" | "operation" | undefined;
            document?: {
                object?: "document" | undefined;
                nodes?: (any | {
                    object?: "block" | undefined;
                    type: import("@makeswift/controls/dist/types/controls/rich-text/slate").BlockType;
                    key?: string | undefined;
                    nodes?: (any | {
                        object?: "inline" | undefined;
                        type: import("@makeswift/controls/dist/types/controls/rich-text/slate").InlineType;
                        key?: string | undefined;
                        nodes?: (any | {
                            object?: "text" | undefined;
                            key?: string | undefined;
                            text?: string | undefined;
                            marks?: {
                                object?: "mark" | undefined;
                                type: string;
                                data?: {
                                    [x: string]: any;
                                } | undefined;
                            }[] | undefined;
                        })[] | undefined;
                        data?: {
                            [x: string]: any;
                        } | undefined;
                    } | {
                        object?: "text" | undefined;
                        key?: string | undefined;
                        text?: string | undefined;
                        marks?: {
                            object?: "mark" | undefined;
                            type: string;
                            data?: {
                                [x: string]: any;
                            } | undefined;
                        }[] | undefined;
                    })[] | undefined;
                    data?: {
                        [x: string]: any;
                    } | undefined;
                } | {
                    object?: "inline" | undefined;
                    type: import("@makeswift/controls/dist/types/controls/rich-text/slate").InlineType;
                    key?: string | undefined;
                    nodes?: (any | {
                        object?: "text" | undefined;
                        key?: string | undefined;
                        text?: string | undefined;
                        marks?: {
                            object?: "mark" | undefined;
                            type: string;
                            data?: {
                                [x: string]: any;
                            } | undefined;
                        }[] | undefined;
                    })[] | undefined;
                    data?: {
                        [x: string]: any;
                    } | undefined;
                } | {
                    object?: "text" | undefined;
                    key?: string | undefined;
                    text?: string | undefined;
                    marks?: {
                        object?: "mark" | undefined;
                        type: string;
                        data?: {
                            [x: string]: any;
                        } | undefined;
                    }[] | undefined;
                })[] | undefined;
                key?: string | undefined;
                data?: {
                    [x: string]: any;
                } | undefined;
            } | undefined;
            selection?: {
                object?: "selection" | undefined;
                anchor?: {
                    object?: "point" | undefined;
                    key?: string | undefined;
                    offset?: number | undefined;
                    path?: number[] | undefined;
                } | undefined;
                focus?: {
                    object?: "point" | undefined;
                    key?: string | undefined;
                    offset?: number | undefined;
                    path?: number[] | undefined;
                } | undefined;
                isFocused?: boolean | undefined;
                marks?: {
                    object?: "mark" | undefined;
                    type: string;
                    data?: {
                        [x: string]: any;
                    } | undefined;
                }[] | undefined;
            } | undefined;
            annotations?: Record<string, {
                object?: "annotation" | undefined;
                key: string;
                type: string;
                data?: {
                    [x: string]: any;
                } | undefined;
                anchor?: {
                    object?: "point" | undefined;
                    key?: string | undefined;
                    offset?: number | undefined;
                    path?: number[] | undefined;
                } | undefined;
                focus?: {
                    object?: "point" | undefined;
                    key?: string | undefined;
                    offset?: number | undefined;
                    path?: number[] | undefined;
                } | undefined;
            }> | undefined;
            data?: Record<string, any> | undefined;
        }, {
            object?: "value" | "block" | "text" | "inline" | "document" | "leaf" | "selection" | "mark" | "range" | "decoration" | "annotation" | "point" | "operation" | undefined;
            document?: {
                object?: "document" | undefined;
                nodes?: (any | {
                    object?: "block" | undefined;
                    type: import("@makeswift/controls/dist/types/controls/rich-text/slate").BlockType;
                    key?: string | undefined;
                    nodes?: (any | {
                        object?: "inline" | undefined;
                        type: import("@makeswift/controls/dist/types/controls/rich-text/slate").InlineType;
                        key?: string | undefined;
                        nodes?: (any | {
                            object?: "text" | undefined;
                            key?: string | undefined;
                            text?: string | undefined;
                            marks?: {
                                object?: "mark" | undefined;
                                type: string;
                                data?: {
                                    [x: string]: any;
                                } | undefined;
                            }[] | undefined;
                        })[] | undefined;
                        data?: {
                            [x: string]: any;
                        } | undefined;
                    } | {
                        object?: "text" | undefined;
                        key?: string | undefined;
                        text?: string | undefined;
                        marks?: {
                            object?: "mark" | undefined;
                            type: string;
                            data?: {
                                [x: string]: any;
                            } | undefined;
                        }[] | undefined;
                    })[] | undefined;
                    data?: {
                        [x: string]: any;
                    } | undefined;
                } | {
                    object?: "inline" | undefined;
                    type: import("@makeswift/controls/dist/types/controls/rich-text/slate").InlineType;
                    key?: string | undefined;
                    nodes?: (any | {
                        object?: "text" | undefined;
                        key?: string | undefined;
                        text?: string | undefined;
                        marks?: {
                            object?: "mark" | undefined;
                            type: string;
                            data?: {
                                [x: string]: any;
                            } | undefined;
                        }[] | undefined;
                    })[] | undefined;
                    data?: {
                        [x: string]: any;
                    } | undefined;
                } | {
                    object?: "text" | undefined;
                    key?: string | undefined;
                    text?: string | undefined;
                    marks?: {
                        object?: "mark" | undefined;
                        type: string;
                        data?: {
                            [x: string]: any;
                        } | undefined;
                    }[] | undefined;
                })[] | undefined;
                key?: string | undefined;
                data?: {
                    [x: string]: any;
                } | undefined;
            } | undefined;
            selection?: {
                object?: "selection" | undefined;
                anchor?: {
                    object?: "point" | undefined;
                    key?: string | undefined;
                    offset?: number | undefined;
                    path?: number[] | undefined;
                } | undefined;
                focus?: {
                    object?: "point" | undefined;
                    key?: string | undefined;
                    offset?: number | undefined;
                    path?: number[] | undefined;
                } | undefined;
                isFocused?: boolean | undefined;
                marks?: {
                    object?: "mark" | undefined;
                    type: string;
                    data?: {
                        [x: string]: any;
                    } | undefined;
                }[] | undefined;
            } | undefined;
            annotations?: Record<string, {
                object?: "annotation" | undefined;
                key: string;
                type: string;
                data?: {
                    [x: string]: any;
                } | undefined;
                anchor?: {
                    object?: "point" | undefined;
                    key?: string | undefined;
                    offset?: number | undefined;
                    path?: number[] | undefined;
                } | undefined;
                focus?: {
                    object?: "point" | undefined;
                    key?: string | undefined;
                    offset?: number | undefined;
                    path?: number[] | undefined;
                } | undefined;
            }> | undefined;
            data?: Record<string, any> | undefined;
        }>;
        dataV2: z.ZodObject<{
            type: z.ZodLiteral<"makeswift::controls::rich-text-v2">;
            version: z.ZodLiteral<2>;
            descendants: z.ZodArray<SchemaType<import("slate").Descendant>, "many">;
            key: z.ZodString;
        }, "strip", z.ZodTypeAny, {
            type: "makeswift::controls::rich-text-v2";
            key: string;
            version: 2;
            descendants: import("slate").Descendant[];
        }, {
            type: "makeswift::controls::rich-text-v2";
            key: string;
            version: 2;
            descendants: import("slate").Descendant[];
        }>;
        value: z.ZodObject<{
            type: z.ZodLiteral<"makeswift::controls::rich-text-v2">;
            version: z.ZodLiteral<2>;
            descendants: z.ZodArray<SchemaType<import("slate").Descendant>, "many">;
            key: z.ZodString;
        }, "strip", z.ZodTypeAny, {
            type: "makeswift::controls::rich-text-v2";
            key: string;
            version: 2;
            descendants: import("slate").Descendant[];
        }, {
            type: "makeswift::controls::rich-text-v2";
            key: string;
            version: 2;
            descendants: import("slate").Descendant[];
        }>;
        userConfig: z.ZodObject<{
            mode: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"makeswift::controls::rich-text-v2::mode::inline">, z.ZodLiteral<"makeswift::controls::rich-text-v2::mode::block">]>>;
            defaultValue: z.ZodOptional<z.ZodString>;
        }, "strip", z.ZodTypeAny, {
            mode?: "makeswift::controls::rich-text-v2::mode::inline" | "makeswift::controls::rich-text-v2::mode::block" | undefined;
            defaultValue?: string | undefined;
        }, {
            mode?: "makeswift::controls::rich-text-v2::mode::inline" | "makeswift::controls::rich-text-v2::mode::block" | undefined;
            defaultValue?: string | undefined;
        }>;
    };
    get configSchema(): SchemaType<Config>;
    createInstance(sendMessage: SendMessage): InstanceType;
    resolveValue(data: DataType | undefined, _resolver: ResourceResolver, _stylesheet: Stylesheet, control?: InstanceType): Resolvable<ReactNode | undefined>;
    getTranslatableData(data: DataType | undefined): Data;
    get pluginControls(): RichTextPluginControl[];
    pluginControlAt(index: number): RichTextPluginControl | undefined;
    toText(data: DataType | undefined): string;
}
export declare class RichTextV2Definition extends Definition {
}
export declare function RichText(config?: UserConfig): RichTextV2Definition;
export declare namespace RichText {
    var Mode: {
        readonly Inline: "makeswift::controls::rich-text-v2::mode::inline";
        readonly Block: "makeswift::controls::rich-text-v2::mode::block";
    };
    var isV1Data: typeof BaseRichTextDefinition.isV1Data;
    var dataToNodes: typeof BaseRichTextDefinition.dataToNodes;
    var Plugin: typeof import("./plugin").Plugin;
}
export { RichTextMode as RichTextV2Mode, type DataV2Type as RichTextDataV2, RichTextV2Control };
//# sourceMappingURL=rich-text-v2.d.ts.map