import React from 'react'; import { ICommand, TextAreaCommandOrchestrator } from './commands/'; import { MDEditorProps } from './Types'; export type PreviewType = 'live' | 'edit' | 'preview'; export interface ContextStore { components?: MDEditorProps['components']; commands?: ICommand[]; extraCommands?: ICommand[]; markdown?: string; preview?: PreviewType; height?: React.CSSProperties['height']; fullscreen?: boolean; highlightEnable?: boolean; autoFocus?: boolean; autoFocusEnd?: boolean; textarea?: HTMLTextAreaElement; commandOrchestrator?: TextAreaCommandOrchestrator; textareaWarp?: HTMLDivElement; textareaPre?: HTMLPreElement; container?: HTMLDivElement | null; dispatch?: React.Dispatch; barPopup?: Record; scrollTop?: number; scrollTopPreview?: number; tabSize?: number; defaultTabEnable?: boolean; [key: string]: any; } export type ExecuteCommandState = Pick; export declare function reducer(state: ContextStore, action: ContextStore): { [x: string]: any; components?: MDEditorProps["components"]; commands?: ICommand[]; extraCommands?: ICommand[]; markdown?: string; preview?: PreviewType; height?: React.CSSProperties["height"]; fullscreen?: boolean; highlightEnable?: boolean; autoFocus?: boolean; autoFocusEnd?: boolean; textarea?: HTMLTextAreaElement; commandOrchestrator?: TextAreaCommandOrchestrator; textareaWarp?: HTMLDivElement; textareaPre?: HTMLPreElement; container?: HTMLDivElement | null; dispatch?: React.Dispatch; barPopup?: Record; scrollTop?: number; scrollTopPreview?: number; tabSize?: number; defaultTabEnable?: boolean; }; export declare const EditorContext: React.Context;