import { DeepObject, Field, FieldConfig, SelectiveEditor, TemplateResult, Types } from '@blinkk/selective-edit'; import Editor from '@toast-ui/editor'; import { LiveEditorGlobalConfig } from '../editor'; export interface MarkdownFieldConfig extends FieldConfig { /** * Placeholder for the markdown field. */ placeholder?: string; /** * Override the default media upload provider to determine if the upload * should be remote. */ remote?: boolean; /** * Size of the hrml field. Allows for the field to be taller * or shorter. */ size: MarkdownFieldSize | string; } /** * Sizes available for the markdown field size. */ export declare enum MarkdownFieldSize { Small = "small", Medium = "medium", Large = "large" } export declare class MarkdownField extends Field { markdownEditor?: Editor; config: MarkdownFieldConfig; globalConfig: LiveEditorGlobalConfig; constructor(types: Types, config: MarkdownFieldConfig, globalConfig: LiveEditorGlobalConfig, fieldType?: string); createEditorIfMissing(): void; /** * Template for rendering the html container. * * @param editor Selective editor used to render the template. * @param data Data provided to render the template. */ templateInput(editor: SelectiveEditor, data: DeepObject): TemplateResult; }