import type { SingleCommands } from '@tiptap/core'; import type { Node, ResolvedPos } from '@tiptap/pm/model'; import type { EditorState } from '@tiptap/pm/state'; import type { CollapsibleListComponentData } from '../types'; export type CollapsibleListAttributes = Pick; export type CollapsibleItemAttributes = { isExpanded: boolean; }; export declare function updateCollapsibleListAttrs(commands: SingleCommands, nodeId: string, attrs: CollapsibleListAttributes): void; export declare function updateCollapsibleListItemsAttrs(state: EditorState, commands: SingleCommands, nodeId: string, { initialExpandedItems }: CollapsibleListAttributes): void; export declare function updateListItemAttributes(commands: SingleCommands, node: Node, attrs: CollapsibleItemAttributes): void; export declare function isInCollapsibleList($pos: ResolvedPos, nodeId: string): boolean; export declare function findCollapsibleListById(state: EditorState, nodeId: string): Node | undefined; export declare function getCollapsibleListItems(state: EditorState, nodeId: string): Node[]; export declare function getCollapsibleListByItemId(state: EditorState, nodeId: string): Node | undefined; export declare const findNodesByType: (state: EditorState, type: string) => import("@tiptap/core").NodeWithPos[]; export declare const findNodeById: (state: EditorState, id: string) => import("@tiptap/core").NodeWithPos[]; //# sourceMappingURL=utils.d.ts.map