import { Fragment, Node as ProseMirrorNode, type ParseOptions, Schema } from 'prosemirror-model';
import type { Content } from '../types';
export type CreateNodeFromContentOptions = {
    slice?: boolean;
    parseOptions?: ParseOptions;
    errorOnInvalidContent?: boolean;
};
/**
 * Takes a JSON or HTML content and creates a Prosemirror node or fragment from it.
 * @param content The JSON or HTML content to create the node from
 * @param schema The Prosemirror schema to use for the node
 * @param options Options for the parser
 * @returns The created Prosemirror node or fragment
 *
 * Source:
 * https://github.com/ueberdosis/tiptap/blob/develop/packages/core/src/helpers/createNodeFromContent.ts
 */
export declare function createNodeFromContent(content: Content | ProseMirrorNode | Fragment, schema: Schema, opts?: CreateNodeFromContentOptions): ProseMirrorNode | Fragment;
//# sourceMappingURL=createNodeFromContent.d.ts.map