import { RTNode } from "../types/value/richText.js";
import { Tree } from "./types.js";

//#region src/richtext/asTree.d.ts
/**
 * Parses a rich text or title field into a tree
 *
 * @remarks
 *   This is a low level helper mainly intended to be used by higher level packages. Most users
 *   aren't expected to this function directly.
 * @param nodes - A rich text or title field from Prismic
 * @returns Tree from given rich text or title field
 */
declare const asTree: (nodes: RTNode[]) => Tree;
//#endregion
export { asTree };
//# sourceMappingURL=asTree.d.ts.map