UNPKG

@stack.thefennec.dev/telegram-export-parser

Version:

TypeScript library for parsing Telegram Desktop's data export with full type safety

8 lines 1.01 kB
import type { CodeTextEntity, CustomEmojiTextEntity, FormattedTextEntity, LinkTextEntity, MentionTextEntity, PlainTextEntity, QuoteTextEntity, RawTextEntity, SpoilerTextEntity, TextEntity } from '../types'; export declare const ENTITY_PARSERS: (import("../core/parser").Parser<RawTextEntity, PlainTextEntity> | import("../core/parser").Parser<RawTextEntity, FormattedTextEntity> | import("../core/parser").Parser<RawTextEntity, SpoilerTextEntity> | import("../core/parser").Parser<RawTextEntity, CodeTextEntity> | import("../core/parser").Parser<RawTextEntity, CustomEmojiTextEntity> | import("../core/parser").Parser<RawTextEntity, QuoteTextEntity> | import("../core/parser").Parser<RawTextEntity, LinkTextEntity> | import("../core/parser").Parser<RawTextEntity, MentionTextEntity>)[]; export declare const cleanupMarkdown: (text: string) => string; export declare const processTextEntities: (entities: TextEntity[]) => { markdown: string; html: string; }; //# sourceMappingURL=text-entities.d.ts.map