import type { NodeType, Node as PMNode, ResolvedPos, Schema } from '@atlaskit/editor-prosemirror/model'; export declare function getBaseNodeTypeName(nodeType: NodeType): string; /** * Returns true if two node types share the same base type name. * * Useful for comparing nodes that may exist as schema variants * (e.g. `panel` and `panel_c1` are considered the same base type). */ export declare function isNodeOfSameBaseType(a: NodeType, b: NodeType): boolean; /** * Checks if a node type is a valid child of a parent node by creating a minimal valid * instance and validating it against the parent's content expression. Unlike ProseMirror's * canReplaceWith, this checks general type compatibility without requiring a specific insertion index. */ export declare function isNodeTypeValidChildOf(childTypeName: string, parentNode: PMNode, schema: Schema): boolean; /** * Picks the appropriate panel NodeType for insertion at the current selection * or resolved position. * * Prefers `panel_c1` when the parent can accept it (e.g. when table-in-panel * is supported), falls back to `panel` otherwise or at isolating boundaries. */ export declare function pickPanelTypeForInsertion($from: ResolvedPos): NodeType;