import { type Descendant, type Node } from 'slate'; import { type ResponsiveValue } from '../../common'; import { type ResolvedColorData } from '../../resources'; import { type DataType } from '../associated-types'; import { LinkDefinition } from '../link'; import { unstable_TypographyDefinition } from '../typography'; export { type Descendant } from 'slate'; export declare const RootBlockType: { readonly Default: "default"; readonly Paragraph: "paragraph"; readonly Heading1: "heading-one"; readonly Heading2: "heading-two"; readonly Heading3: "heading-three"; readonly Heading4: "heading-four"; readonly Heading5: "heading-five"; readonly Heading6: "heading-six"; readonly BlockQuote: "blockquote"; readonly UnorderedList: "unordered-list"; readonly OrderedList: "ordered-list"; }; export type RootBlockType = (typeof RootBlockType)[keyof typeof RootBlockType]; export declare const BlockType: { readonly ListItem: "list-item"; readonly ListItemChild: "list-item-child"; readonly Default: "default"; readonly Paragraph: "paragraph"; readonly Heading1: "heading-one"; readonly Heading2: "heading-two"; readonly Heading3: "heading-three"; readonly Heading4: "heading-four"; readonly Heading5: "heading-five"; readonly Heading6: "heading-six"; readonly BlockQuote: "blockquote"; readonly UnorderedList: "unordered-list"; readonly OrderedList: "ordered-list"; }; export type BlockType = (typeof BlockType)[keyof typeof BlockType]; export type Typography = DataType; export type Children = Array; export declare const Text: import("slate").TextInterface; export type Text = { text: string; typography?: Typography; color?: ResponsiveValue; slice?: boolean; className?: string; translationKey?: string; }; export declare function isText(node: any): node is Text; export declare const BlockTextAlignment: { readonly Left: "left"; readonly Center: "center"; readonly Right: "right"; readonly Justify: "justify"; }; export type BlockTextAlignment = (typeof BlockTextAlignment)[keyof typeof BlockTextAlignment]; export type ResponsiveBlockTextAlignment = ResponsiveValue; type BlockElement = { type: T; textAlign?: ResponsiveBlockTextAlignment; className?: string; children: Children; slice?: boolean; typography?: Typography; }; export type DefaultElement = BlockElement; export declare function isDefaultElement(node: Node): node is DefaultElement; export type ParagraphElement = BlockElement; export type Heading1Element = BlockElement; export type Heading2Element = BlockElement; export type Heading3Element = BlockElement; export type Heading4Element = BlockElement; export type Heading5Element = BlockElement; export type Heading6Element = BlockElement; export type BlockQuoteElement = BlockElement; export type UnorderedListElement = BlockElement; export type OrderedListElement = BlockElement; export type ListElement = OrderedListElement | UnorderedListElement; export declare function isList(node: Node): node is ListElement; export type ListItemElement = BlockElement; export declare function isListItem(node: Node): node is ListItemElement; export type ListItemChildElement = BlockElement; export declare function isListItemChild(node: Node): node is ListItemChildElement; export declare function isConvertibleToListTextNode(node: Node): boolean; export type HeadingElement = Heading1Element | Heading2Element | Heading3Element | Heading4Element | Heading5Element | Heading6Element; export declare function isHeading(node: Node): node is HeadingElement; export type RootBlock = ParagraphElement | BlockQuoteElement | HeadingElement | ListElement | DefaultElement; export declare function isRootBlock(node: Node): node is RootBlock; export type Block = RootBlock | ListItemElement | ListItemChildElement; export declare function isBlock(node: Node): node is Block; export declare const InlineType: { readonly Code: "code"; readonly SuperScript: "superscript"; readonly SubScript: "subscript"; readonly Link: "link"; }; export type InlineType = (typeof InlineType)[keyof typeof InlineType]; export type InlineChildren = Array; type InlineElement = { type: T; className?: string; children: Array; slice?: boolean; typography?: Typography; translationKey?: string; }; export type CodeElement = InlineElement; export type SuperElement = InlineElement; export type SubElement = InlineElement; export type LinkElement = InlineElement & { link?: DataType; }; export declare function isLink(node: unknown): node is LinkElement; export type Inline = CodeElement | SuperElement | SubElement | LinkElement; export declare function isInline(node: unknown): node is Inline; export declare const Element: import("slate").ElementInterface; export type Element = Block | Inline; export type RichTextDAO = Descendant[]; declare module 'slate' { interface CustomTypes { Element: Element; Text: Text; } } //# sourceMappingURL=slate.d.ts.map