import type { MarkdownSelection, MarkdownSelectionPoint } from './Markdown.js'; /** Get children of element */ export declare function getChildren(element: T): (string | number | import("react").ReactElement> | Iterable | import("react").ReactPortal)[]; /** RegEx to match dash separated language info */ export declare function matchLanguageParm(className?: string): RegExpExecArray | null; /** * Extracts a MarkdownSelection from two markdown components * @param start - Start Element * @param end - End Element */ export declare function extractSourcePos(start: Element, end: Element): MarkdownSelection | null; /** * Recursively traverses the parents to find a valid element with data-sourcepos. * Stops after a maximum of 10 recursions * @param element - The element whose parent we're looking for * @param count - how deep it already is into its recursion */ export declare function findValidParent(element: Node | null, count?: number): Element | null; /** * Calculates the offset in the sourceString, given line numbers * @param position - a MarkdownSelectionPoint in the document/sourceString * @param source - the document/sourceString * @param lineOffset - whether we stop on the last line, before, after... */ export declare function findOffset(position: MarkdownSelectionPoint, source: string, lineOffset?: number): number;