import type { ModelRef, VNodeRef } from 'vue'; import type { Editor, NodeJSON } from 'prosekit/core'; import type { VueNodeViewProps } from 'prosekit/vue'; import type { ProseMirrorNode } from 'prosekit/pm/model'; import type { MDCProsemirrorOptions } from '@unpress/mdc-prosemirror'; import { type MdcEditorConfig } from '../prosekit/editor-config/index.js'; export type Data = Record; export declare function useMdcEditor(): { editor: Editor; config: MdcEditorConfig; createEditor: (model: ModelRef, extensions?: () => T, _config?: MDCProsemirrorOptions, _data?: any, _fileData?: any) => Promise<{ config: MdcEditorConfig; editor: Editor; frontmatter: import("vue").Ref<{}, {}>; setMarkdown: (value: string) => Promise; _onDocChange: (doc: ProseMirrorNode) => Promise; }>; theme: import("vue").Ref; prosekitComponentsSlots: Record; getComponentProps: (props: VueNodeViewProps, defaults?: Record) => { componentName: any; mdcAttrs: Record; model: Record; }; onSearchPage: (query?: string) => never[]; frontmatter: import("vue").Ref<{}, {}>; frontmatterKeys: import("vue").ComputedRef; frontmatterError: import("vue").Ref; frontmatterDoc: import("vue").Ref, Record>; fileData: import("vue").Ref, Record>; isFrontmatterValue: (value: unknown) => boolean; isPossibleFrontmatterValue: (value: unknown) => boolean; };