import { ParserHandle, ParserRule, ProcFunc } from '../parser'; import { ContextTag, ContextMap, NoMeta, UnknownToken, TokenType } from '../model'; import { BlockTag, BlockPhrase, BlockSpace, BlockCode, BlockMath, BlockHeading, BlockTable, BlockHr, BlockQuote, BlockFootnotes, BlockList, BlockParagraph, BlockText, BlockOrdList, MetaLinks, MetaHeadings, MetaAbbrevs, MetaFootnotes } from './model'; export declare type BlockRule = ParserRule, ContextTag.Block | ContextTag.BlockNest, Meta>; export declare type BlockHandle = ParserHandle, ContextTag.Block | ContextTag.BlockNest, Meta>; export declare const Newline: BlockRule; export declare const CodeBlock: BlockRule; export declare const Fences: BlockRule; export declare const MathBlock: BlockRule; export declare const Heading: BlockRule, MetaHeadings>; export declare const LHeading: BlockRule, MetaHeadings>; export declare const GfmHeading: BlockRule, MetaHeadings>; export interface TokenWithNested { _?: string | TokenWithNested[]; } export declare function extractText(tokens: TokenWithNested[]): string; export declare const Hr: BlockRule; export declare const Quote: BlockRule, NoMeta>; export declare function procBlocks; }, Meta>($: BlockHandle, token: TokenType): void; export declare const Paragraph: BlockRule, NoMeta>; export declare function gfmParagraph([ctxs, order, regex, parse, tags, proc]: BlockRule, NoMeta>): BlockRule, NoMeta>; export declare const GfmParagraph: ParserRule, any, any>, ContextTag.Block | ContextTag.BlockNest, NoMeta>; export declare const TextBlock: BlockRule, NoMeta>; export declare function procInlines; }, InlineTokenMap, Meta>($: BlockHandle, token: TokenType): void; export declare const List: BlockRule | BlockOrdList, NoMeta>; export declare const SmartList: BlockRule | BlockOrdList, NoMeta>; export declare function textBlocksToParagraphs(tokens: TokenType | BlockText>[]): void; export declare const Def: BlockRule; export declare const PedanticDef: BlockRule; export declare const AbbrevBlock: BlockRule; export declare const FootnotesBlock: BlockRule, MetaFootnotes>; export declare const NpTable: BlockRule, NoMeta>; export declare const Table: BlockRule, NoMeta>; export declare const BlockNormal: ([(ContextTag.Block | ContextTag.BlockNest)[], number, string, import("../parser").ParseFunc, ContextTag.Block | ContextTag.BlockNest, NoMeta>, BlockTag.Space[], ProcFunc, ContextTag.Block | ContextTag.BlockNest, NoMeta>] | [(ContextTag.Block | ContextTag.BlockNest)[], number, string, import("../parser").ParseFunc, ContextTag.Block | ContextTag.BlockNest, NoMeta>] | [(ContextTag.Block | ContextTag.BlockNest)[], number, string, import("../parser").ParseFunc, any, any>, ContextTag.Block | ContextTag.BlockNest, MetaHeadings>, import("../parser").InitFunc, any, any>, ContextTag.Block | ContextTag.BlockNest, MetaHeadings>, BlockTag.Heading[], ProcFunc, any, any>, ContextTag.Block | ContextTag.BlockNest, MetaHeadings>] | [(ContextTag.Block | ContextTag.BlockNest)[], number, string, import("../parser").ParseFunc, ContextTag.Block | ContextTag.BlockNest, NoMeta>] | [(ContextTag.Block | ContextTag.BlockNest)[], number, string, import("../parser").ParseFunc, any, any>, ContextTag.Block | ContextTag.BlockNest, NoMeta>, BlockTag.Quote[], ProcFunc, any, any>, ContextTag.Block | ContextTag.BlockNest, NoMeta>] | [(ContextTag.Block | ContextTag.BlockNest)[], number, string, import("../parser").ParseFunc, any, any>, ContextTag.Block | ContextTag.BlockNest, NoMeta>, BlockTag.Paragraph[], ProcFunc, any, any>, ContextTag.Block | ContextTag.BlockNest, NoMeta>] | [(ContextTag.Block | ContextTag.BlockNest)[], number, string, import("../parser").ParseFunc, any, any>, ContextTag.Block | ContextTag.BlockNest, NoMeta>, BlockTag.Text[], ProcFunc, any, any>, ContextTag.Block | ContextTag.BlockNest, NoMeta>] | [(ContextTag.Block | ContextTag.BlockNest)[], number, string, import("../parser").ParseFunc | BlockOrdList, any, any>, ContextTag.Block | ContextTag.BlockNest, NoMeta>, (BlockTag.List | BlockTag.OrdList)[], ProcFunc | BlockOrdList, any, any>, ContextTag.Block | ContextTag.BlockNest, NoMeta>] | [(ContextTag.Block | ContextTag.BlockNest)[], number, string, import("../parser").ParseFunc, ContextTag.Block | ContextTag.BlockNest, MetaLinks>, import("../parser").InitFunc, ContextTag.Block | ContextTag.BlockNest, MetaLinks>])[]; export declare const BlockPedantic: ([(ContextTag.Block | ContextTag.BlockNest)[], number, string, import("../parser").ParseFunc, ContextTag.Block | ContextTag.BlockNest, NoMeta>, BlockTag.Space[], ProcFunc, ContextTag.Block | ContextTag.BlockNest, NoMeta>] | [(ContextTag.Block | ContextTag.BlockNest)[], number, string, import("../parser").ParseFunc, ContextTag.Block | ContextTag.BlockNest, NoMeta>] | [(ContextTag.Block | ContextTag.BlockNest)[], number, string, import("../parser").ParseFunc, any, any>, ContextTag.Block | ContextTag.BlockNest, MetaHeadings>, import("../parser").InitFunc, any, any>, ContextTag.Block | ContextTag.BlockNest, MetaHeadings>, BlockTag.Heading[], ProcFunc, any, any>, ContextTag.Block | ContextTag.BlockNest, MetaHeadings>] | [(ContextTag.Block | ContextTag.BlockNest)[], number, string, import("../parser").ParseFunc, ContextTag.Block | ContextTag.BlockNest, NoMeta>] | [(ContextTag.Block | ContextTag.BlockNest)[], number, string, import("../parser").ParseFunc, any, any>, ContextTag.Block | ContextTag.BlockNest, NoMeta>, BlockTag.Quote[], ProcFunc, any, any>, ContextTag.Block | ContextTag.BlockNest, NoMeta>] | [(ContextTag.Block | ContextTag.BlockNest)[], number, string, import("../parser").ParseFunc, any, any>, ContextTag.Block | ContextTag.BlockNest, NoMeta>, BlockTag.Paragraph[], ProcFunc, any, any>, ContextTag.Block | ContextTag.BlockNest, NoMeta>] | [(ContextTag.Block | ContextTag.BlockNest)[], number, string, import("../parser").ParseFunc, any, any>, ContextTag.Block | ContextTag.BlockNest, NoMeta>, BlockTag.Text[], ProcFunc, any, any>, ContextTag.Block | ContextTag.BlockNest, NoMeta>] | [(ContextTag.Block | ContextTag.BlockNest)[], number, string, import("../parser").ParseFunc | BlockOrdList, any, any>, ContextTag.Block | ContextTag.BlockNest, NoMeta>, (BlockTag.List | BlockTag.OrdList)[], ProcFunc | BlockOrdList, any, any>, ContextTag.Block | ContextTag.BlockNest, NoMeta>] | [(ContextTag.Block | ContextTag.BlockNest)[], number, string, import("../parser").ParseFunc, ContextTag.Block | ContextTag.BlockNest, MetaLinks>, import("../parser").InitFunc, ContextTag.Block | ContextTag.BlockNest, MetaLinks>])[]; export declare const BlockGfm: ([(ContextTag.Block | ContextTag.BlockNest)[], number, string, import("../parser").ParseFunc, ContextTag.Block | ContextTag.BlockNest, NoMeta>, BlockTag.Space[], ProcFunc, ContextTag.Block | ContextTag.BlockNest, NoMeta>] | [(ContextTag.Block | ContextTag.BlockNest)[], number, string, import("../parser").ParseFunc, ContextTag.Block | ContextTag.BlockNest, NoMeta>] | [(ContextTag.Block | ContextTag.BlockNest)[], number, string, import("../parser").ParseFunc, any, any>, ContextTag.Block | ContextTag.BlockNest, MetaHeadings>, import("../parser").InitFunc, any, any>, ContextTag.Block | ContextTag.BlockNest, MetaHeadings>, BlockTag.Heading[], ProcFunc, any, any>, ContextTag.Block | ContextTag.BlockNest, MetaHeadings>] | [(ContextTag.Block | ContextTag.BlockNest)[], number, string, import("../parser").ParseFunc, ContextTag.Block | ContextTag.BlockNest, NoMeta>] | [(ContextTag.Block | ContextTag.BlockNest)[], number, string, import("../parser").ParseFunc, any, any>, ContextTag.Block | ContextTag.BlockNest, NoMeta>, BlockTag.Quote[], ProcFunc, any, any>, ContextTag.Block | ContextTag.BlockNest, NoMeta>] | [(ContextTag.Block | ContextTag.BlockNest)[], number, string, import("../parser").ParseFunc, any, any>, ContextTag.Block | ContextTag.BlockNest, NoMeta>] | [(ContextTag.Block | ContextTag.BlockNest)[], number, string, import("../parser").ParseFunc, any, any>, ContextTag.Block | ContextTag.BlockNest, NoMeta>, import("../parser").InitFunc, any, any>, ContextTag.Block | ContextTag.BlockNest, NoMeta>] | [(ContextTag.Block | ContextTag.BlockNest)[], number, string, import("../parser").ParseFunc, any, any>, ContextTag.Block | ContextTag.BlockNest, NoMeta>, BlockTag.Paragraph[], ProcFunc, any, any>, ContextTag.Block | ContextTag.BlockNest, NoMeta>] | [(ContextTag.Block | ContextTag.BlockNest)[], number, string, import("../parser").ParseFunc, any, any>, ContextTag.Block | ContextTag.BlockNest, NoMeta>, import("../parser").InitFunc, any, any>, ContextTag.Block | ContextTag.BlockNest, NoMeta>, BlockTag.Paragraph[], ProcFunc, any, any>, ContextTag.Block | ContextTag.BlockNest, NoMeta>] | [(ContextTag.Block | ContextTag.BlockNest)[], number, string, import("../parser").ParseFunc, any, any>, ContextTag.Block | ContextTag.BlockNest, NoMeta>, BlockTag.Text[], ProcFunc, any, any>, ContextTag.Block | ContextTag.BlockNest, NoMeta>] | [(ContextTag.Block | ContextTag.BlockNest)[], number, string, import("../parser").ParseFunc | BlockOrdList, any, any>, ContextTag.Block | ContextTag.BlockNest, NoMeta>, (BlockTag.List | BlockTag.OrdList)[], ProcFunc | BlockOrdList, any, any>, ContextTag.Block | ContextTag.BlockNest, NoMeta>])[]; export declare const BlockGfmTables: ([(ContextTag.Block | ContextTag.BlockNest)[], number, string, import("../parser").ParseFunc, ContextTag.Block | ContextTag.BlockNest, NoMeta>, BlockTag.Space[], ProcFunc, ContextTag.Block | ContextTag.BlockNest, NoMeta>] | [(ContextTag.Block | ContextTag.BlockNest)[], number, string, import("../parser").ParseFunc, ContextTag.Block | ContextTag.BlockNest, NoMeta>] | [(ContextTag.Block | ContextTag.BlockNest)[], number, string, import("../parser").ParseFunc, any, any>, ContextTag.Block | ContextTag.BlockNest, MetaHeadings>, import("../parser").InitFunc, any, any>, ContextTag.Block | ContextTag.BlockNest, MetaHeadings>, BlockTag.Heading[], ProcFunc, any, any>, ContextTag.Block | ContextTag.BlockNest, MetaHeadings>] | [(ContextTag.Block | ContextTag.BlockNest)[], number, string, import("../parser").ParseFunc, ContextTag.Block | ContextTag.BlockNest, NoMeta>] | [(ContextTag.Block | ContextTag.BlockNest)[], number, string, import("../parser").ParseFunc, any, any>, ContextTag.Block | ContextTag.BlockNest, NoMeta>, BlockTag.Quote[], ProcFunc, any, any>, ContextTag.Block | ContextTag.BlockNest, NoMeta>] | [(ContextTag.Block | ContextTag.BlockNest)[], number, string, import("../parser").ParseFunc, any, any>, ContextTag.Block | ContextTag.BlockNest, NoMeta>] | [(ContextTag.Block | ContextTag.BlockNest)[], number, string, import("../parser").ParseFunc, any, any>, ContextTag.Block | ContextTag.BlockNest, NoMeta>, import("../parser").InitFunc, any, any>, ContextTag.Block | ContextTag.BlockNest, NoMeta>] | [(ContextTag.Block | ContextTag.BlockNest)[], number, string, import("../parser").ParseFunc, any, any>, ContextTag.Block | ContextTag.BlockNest, NoMeta>, BlockTag.Paragraph[], ProcFunc, any, any>, ContextTag.Block | ContextTag.BlockNest, NoMeta>] | [(ContextTag.Block | ContextTag.BlockNest)[], number, string, import("../parser").ParseFunc, any, any>, ContextTag.Block | ContextTag.BlockNest, NoMeta>, import("../parser").InitFunc, any, any>, ContextTag.Block | ContextTag.BlockNest, NoMeta>, BlockTag.Paragraph[], ProcFunc, any, any>, ContextTag.Block | ContextTag.BlockNest, NoMeta>] | [(ContextTag.Block | ContextTag.BlockNest)[], number, string, import("../parser").ParseFunc, any, any>, ContextTag.Block | ContextTag.BlockNest, NoMeta>, BlockTag.Text[], ProcFunc, any, any>, ContextTag.Block | ContextTag.BlockNest, NoMeta>] | [(ContextTag.Block | ContextTag.BlockNest)[], number, string, import("../parser").ParseFunc | BlockOrdList, any, any>, ContextTag.Block | ContextTag.BlockNest, NoMeta>, (BlockTag.List | BlockTag.OrdList)[], ProcFunc | BlockOrdList, any, any>, ContextTag.Block | ContextTag.BlockNest, NoMeta>] | [(ContextTag.Block | ContextTag.BlockNest)[], number, string, import("../parser").ParseFunc, any, any>, ContextTag.Block | ContextTag.BlockNest, NoMeta>, BlockTag.Table[], ProcFunc, any, any>, ContextTag.Block | ContextTag.BlockNest, NoMeta>])[];