init.d.ts 1.4 KB

12345678910111213141516171819202122
  1. import type { MilkdownPlugin, SliceType, TimerType } from '@milkdown/ctx';
  2. import type { InputRule } from '@milkdown/prose/inputrules';
  3. import type { Plugin } from '@milkdown/prose/state';
  4. import type { MarkViewConstructor, NodeViewConstructor } from '@milkdown/prose/view';
  5. import type { RemarkParser, RemarkPlugin } from '@milkdown/transformer';
  6. import type { Options } from 'remark-stringify';
  7. import type { Editor } from '../editor';
  8. export declare const InitReady: TimerType;
  9. export declare const initTimerCtx: SliceType<TimerType[], "initTimer">;
  10. export declare const editorCtx: SliceType<Editor, "editor">;
  11. export declare const inputRulesCtx: SliceType<InputRule[], "inputRules">;
  12. export declare const prosePluginsCtx: SliceType<Plugin<any>[], "prosePlugins">;
  13. export declare const remarkPluginsCtx: SliceType<RemarkPlugin<Record<string, unknown>>[], "remarkPlugins">;
  14. type NodeView = [nodeId: string, view: NodeViewConstructor];
  15. export declare const nodeViewCtx: SliceType<NodeView[], "nodeView">;
  16. type MarkView = [nodeId: string, view: MarkViewConstructor];
  17. export declare const markViewCtx: SliceType<MarkView[], "markView">;
  18. export declare const remarkCtx: SliceType<RemarkParser, 'remark'>;
  19. export declare const remarkStringifyOptionsCtx: SliceType<Options, "remarkStringifyOptions">;
  20. export declare function init(editor: Editor): MilkdownPlugin;
  21. export {};
  22. //# sourceMappingURL=init.d.ts.map