import type { TestEditorViewProps } from 'jest-prosemirror'; import { ProsemirrorNode } from '@remirror/core'; import { Selection } from '@remirror/pm/state'; import type { TaggedProsemirrorNode, Tags } from './jest-remirror-types'; /** * Insert */ interface InsertProps extends TestEditorViewProps { /** * The content to replace the current selection with * This can be strings a node or an array of nodes. */ content: string[] | TaggedProsemirrorNode | TaggedProsemirrorNode[]; } /** * Replace the current selection with the given content, which may be * string, a fragment, node, or array of nodes. */ export declare function replaceSelection(props: InsertProps): Tags; /** * Check if a node is tagged. */ export declare function isTaggedNode(value: unknown): value is TaggedProsemirrorNode; export declare function createSelectionFromTaggedDocument(doc: ProsemirrorNode, tags: Tags): Selection | null; export {};