import type { DocumentViewNode, ToonCommentMarker, ToonCommentMarkerMap, ToonInlineToken } from './document_view-types.js';
export type { DocumentViewComment, DocumentViewCommentRange, ToonCommentMarker, ToonCommentMarkerMap, ToonInlineToken } from './document_view-types.js';
export declare const INLINE_COMMENT_MARKER_RUNTIME: unique symbol;
export declare const TOON_INLINE_TAG_RE: RegExp;
/**
 * Split a TOON inline-tag string (`DocumentViewNode.tagged_text` produced with
 * `show_formatting`) into an ordered list of `tag` and `text` tokens, using the exact same
 * grammar (`TOON_INLINE_TAG_RE`) the formatter emits. Consecutive literal characters are
 * coalesced into one `text` token. This is the shared tokenization primitive used by
 * downstream serializers (Markdown today, HTML next) so they never reason about the tag
 * grammar independently and drift from the emitter.
 */
export declare function tokenizeToonInline(text: string): ToonInlineToken[];
export declare function countVisibleTextCharacters(text: string): number;
export declare function findTaggedTextInsertionIndex(text: string, visibleOffset: number): number;
export declare function injectToonCommentMarkers(text: string, markers: readonly ToonCommentMarker[]): string;
export declare function collectInlineCommentMarkers(nodes: readonly DocumentViewNode[]): ToonCommentMarkerMap;
//# sourceMappingURL=document_view-comments.d.ts.map