import type { TextBlock } from "@prismicio/types-internal/lib/content"; import { Extension } from "@tiptap/core"; import type { Node as ProsemirrorNode } from "@tiptap/pm/model"; export type Direction = "ltr" | "rtl"; export declare const leftToRight: Direction; export declare const rightToLeft: Direction; interface TextDirectionOptions { supportedExtensionNames: string[]; } export declare const attrName = "dir"; declare module "@tiptap/core" { interface Commands { [attrName]: { setDirection: (direction: Direction) => ReturnType; toggleDirection: (direction: Direction) => ReturnType; /** * Set the text direction attribute */ setRightToLeft: () => ReturnType; /** * Unset the text direction attribute */ setLeftToRight: () => ReturnType; }; } } export declare const richTextNodeType: "rtl"; export declare const component: Extension; export declare const converter: { parseNodeAttrsDirection(attributes: Record): Direction; fromPrismic(textBlock: TextBlock): { dir: Direction; }; toPrismic(node: ProsemirrorNode): { direction: Direction; }; }; export {};