import { I as InlineAnnotation, o as InlineRubyAnnotation } from './types-DnPOMbQV.js'; /** * Manuscript notation dialect. Selects which inline markers are recognized. * * - `narou` / `kakuyomu` — Aozora-style ruby only (`|base《ruby》` and * `漢字《かんじ》`). Other markers pass through as plain text. * - `mejiro` (default) — adds emphasis dots (`《《text》》`), tate-chu-yoko * (`〔20〕`), markdown-style `*em*` / `**strong**`, and footnote refs * (`[[#id]]`). */ type ManuscriptDialect = 'narou' | 'kakuyomu' | 'mejiro'; /** Options for parseManuscript. */ interface ParseManuscriptOptions { /** Notation dialect. Defaults to `'mejiro'`. */ dialect?: ManuscriptDialect; } /** * Parses a manuscript paragraph into base text and inline annotations. * * Supports the full `InlineAnnotation` set (ruby, emphasis dots, * tate-chu-yoko, em/strong, footnote refs) under the `'mejiro'` dialect; * narrower dialects (`'narou'` / `'kakuyomu'`) keep markup compatible with * those sites by emitting only ruby annotations. */ declare function parseManuscript(text: string, options?: ParseManuscriptOptions): { text: string; inlineAnnotations: InlineAnnotation[]; }; /** * Aozora-style ruby parser kept for compatibility with callers written against * the ruby-only manuscript API. Equivalent to * `parseManuscript(text, { dialect: 'narou' })` filtered to ruby annotations. * * @deprecated Use `parseManuscript`. Removal is deferred to a future major * release; no removal version is scheduled. */ declare function parseManuscriptRuby(text: string): { text: string; inlineAnnotations: InlineRubyAnnotation[]; }; export { type ManuscriptDialect as M, type ParseManuscriptOptions as P, parseManuscriptRuby as a, parseManuscript as p };