import type { Transaction } from 'prosemirror-state'; import type { MarkType, NodeType, Node, Schema } from 'prosemirror-model'; import type { Nodes } from '@curvenote/schema'; import type { ContentNodeWithPos } from '@curvenote/prosemirror-utils'; import type { AppThunk } from '../types'; export declare function updateNodeAttrs(stateKey: any, viewId: string | null, node: Pick, attrs: { [index: string]: any; }, select?: boolean | 'after' | 'inside'): AppThunk; export declare function deleteNode(stateKey: any, viewId: string | null, node: Pick): AppThunk; export declare function liftContentOutOfNode(stateKey: any, viewId: string | null, node: Pick): AppThunk; export declare function toggleMark(stateKey: any, viewId: string | null, mark?: MarkType, attrs?: { [key: string]: any; }): AppThunk; export declare function removeMark(stateKey: any, viewId: string | null, mark: MarkType, from: number, to: number): AppThunk; export declare function wrapInList(stateKey: string, viewId: string | null, node: NodeType, test?: boolean): AppThunk; export declare function wrapIn(node: NodeType): AppThunk; export declare function selectNode(tr: Transaction, select?: boolean | 'after'): Transaction; export declare function replaceSelection(node: NodeType, attrs?: { [index: string]: any; }, content?: Node): AppThunk; export declare function insertNode(node: NodeType, attrs?: { [index: string]: any; }, content?: Node): AppThunk; export declare function insertInlineNode(node?: NodeType, attrs?: { [index: string]: any; }, content?: Node, select?: boolean | 'after'): AppThunk; export declare function insertText(text: string): AppThunk; export declare const wrapInHeading: (schema: Schema, level: number) => AppThunk; export declare const insertVariable: (schema: Schema, attrs?: Nodes.Variable.Attrs) => AppThunk; export declare function addComment(viewId: string, commentId: string): AppThunk; export declare function removeComment(viewId: string, commentId: string): AppThunk; export declare function addCommentToSelectedView(commentId: string): AppThunk; export declare function toggleCitationBrackets(): AppThunk;