UNPKG

react-mde

Version:
15 lines (14 loc) 660 B
import { Command } from "../../types"; import { TextApi, TextState } from "../../index"; export declare type AlterLineFunction = (line: string, index: number) => string; /** * Inserts insertionString before each line */ export declare function insertBeforeEachLine(selectedText: string, insertBefore: string | AlterLineFunction): { modifiedText: string; insertionLength: number; }; export declare const makeList: (state0: TextState, api: TextApi, insertBefore: string | AlterLineFunction) => void; export declare const unorderedListCommand: Command; export declare const orderedListCommand: Command; export declare const checkedListCommand: Command;