export interface Line { /** Line index of all lines */ index: number; /** the pure text of the line */ text: string; /** Line type `ordered list` | `unordered list` | `check list` | 'empty line` | `other` */ type: 'ul' | 'ol' | 'cl' | 'empty' | 'other'; /** item prefix if is a list item */ prefix?: string; /** the order of the line in the list if is a list item */ order?: number; /** Either the list item is checked or not if the type is a `check list` */ checked?: boolean; /** * only if is a list item line. the position in the ul tree * => 0 = is a parent, 1 = the first child list, 2 = the second child list * and so on. */ treePosition?: number; } export declare const isListItem: (type: string) => boolean; /** Return the line that the cursor exists in */ export declare const getLineAtPosition: (text: string, position: number) => Line;