import type { Node } from 'prosemirror-model';
import type { nodeNames } from '../types';
export declare function clamp(val: number, min: number, max: number): number;
export declare function createId(): string;
export declare type NodeWithPos = {
    pos: number;
    node: Node;
};
export declare function findChildrenWithName(parent: Node, nodeName: nodeNames | nodeNames[]): NodeWithPos[];
