@prismicio/helpers
Version:
Set of helpers to manage Prismic data
10 lines (9 loc) • 870 B
TypeScript
import { RTBlockNode, RTInlineNode, RTPreformattedNode, RTImageNode, RTEmbedNode, RTLinkNode } from "@prismicio/types";
import { LinkResolverFunction } from "../types";
export declare const getLabel: (node: RTBlockNode | RTInlineNode) => string;
export declare const serializeStandardTag: (tag: string, node: RTBlockNode | RTInlineNode, children: string[]) => string;
export declare const serializePreFormatted: (node: RTPreformattedNode) => string;
export declare const serializeImage: (linkResolver: LinkResolverFunction<string> | undefined | null, node: RTImageNode) => string;
export declare const serializeEmbed: (node: RTEmbedNode) => string;
export declare const serializeHyperlink: (linkResolver: LinkResolverFunction | undefined | null, node: RTLinkNode, children: string[]) => string;
export declare const serializeSpan: (content?: string) => string;