UNPKG

medium-proeditor

Version:

A powerful & customizable Medium-style rich text editor

26 lines 726 B
interface Emitter { startScope(name: string): void; endScope(): void; addText(text: string): void; toHTML(): string; finalize(): void; __addSublanguage(emitter: Emitter, subLanguageName: string): void; } export declare class HastEmitter implements Emitter { private root; private stack; private options; constructor(options: Partial<{ classPrefix: string; }>); addText(value: string): void; startScope(rawName: unknown): void; endScope(): void; __addSublanguage(other: HastEmitter, name: string): void; openNode(name: string): void; closeNode(): void; finalize(): void; toHTML(): string; } export {}; //# sourceMappingURL=HastEmitter.d.ts.map