UNPKG

@mini-markdown-rc/editor

Version:
44 lines (43 loc) 1.44 kB
type Command = string; type Description = string; export declare class Hotkey { readonly command: Command; readonly description: Description; readonly handle?: (() => void) | undefined; static readonly TITLE: { readonly FIRST: Hotkey; readonly SECOND: Hotkey; readonly THIRD: Hotkey; readonly FOURTH: Hotkey; readonly FIFTH: Hotkey; readonly SIXTH: Hotkey; }; static readonly BOLD: Hotkey; static readonly ITALIC: Hotkey; static readonly UNDERLINE: Hotkey; static readonly DELETE: Hotkey; static readonly BLOCKQUOTE: Hotkey; static readonly UNORDERED_LIST: Hotkey; static readonly ORDERED_LIST: Hotkey; static readonly INLINE_CODE: Hotkey; static readonly CODE_BLOCK: Hotkey; static readonly LINK: Hotkey; static readonly TABLE: Hotkey; static readonly UNDO: Hotkey; static readonly REDO: Hotkey; static readonly FULL_SCREEN: Hotkey; static readonly SAVE: Hotkey; constructor(command: Command, description: Description, handle?: (() => void) | undefined); private static readonly isMac; get codeMirrorCommand(): string; private static readonly KEY_MAPPING; get readableCommand(): string; get helpCommand(): string; private static validateCommand; toConfig(): { command: string; description: string; handle: (() => void) | undefined; }; } export {};