import type { Node, Schema } from 'prosemirror-model'; import { Slice } from 'prosemirror-model'; import { Plugin } from 'prosemirror-state'; import { AssetLoad, type Converter, type CoreEditor, Extension, type UrlRewriter } from '@kerebron/editor'; import { AsyncCommand, Command, CommandFactories } from '@kerebron/editor/commands'; import { FrontmatterService } from '@kerebron/editor/frontmatter'; import { MarkdownResult } from './pmToMdConverter.js'; import type { Token } from './types.js'; import { Telemetry } from '@kerebron/editor/Telemetry'; export interface MdConfig { sourceMap?: boolean; serializerDebug?: (...args: any[]) => void; assetLoad?: AssetLoad; urlRewriter?: UrlRewriter; hooks?: HookArray; frontmatter?: FrontmatterService; tokenizer?: { parse: (source: string) => Array; }; telemetry: Telemetry; htmlListItems?: boolean; listMargins?: Record; } export type HookArray = Array; export type HookMap = Record; export type { Token }; export type { MarkdownResult }; export declare class ExtensionMarkdown extends Extension { config: Partial; name: string; tokenizer: { parse: (source: string) => Array; } | undefined; constructor(config?: Partial); getConverters(editor: CoreEditor, schema: Schema): Record; toMarkdown(source: Node): Promise; fromMarkdown(source: string): Promise; getCommandFactories(): Partial; getProseMirrorPlugins(): Plugin[]; } //# sourceMappingURL=ExtensionMarkdown.d.ts.map