import { type ElementNode } from './types.js'; export type Terminal = (w: string) => boolean; export interface TextRun { readonly kind: 'text'; readonly text: string; readonly marks: readonly ElementNode[]; } export interface NodeRun { readonly kind: 'node'; readonly node: ElementNode; readonly marks: readonly ElementNode[]; } export type Run = TextRun | NodeRun; export declare function runsOf(holder: ElementNode, isTerminal?: Terminal): Run[]; export declare function runLength(run: Run): number; export declare function lengthOf(holder: ElementNode, isTerminal?: Terminal): number; export declare function marksBefore(holder: ElementNode, offset: number, isTerminal?: Terminal): readonly ElementNode[]; //# sourceMappingURL=runs.d.ts.map