import { IFileManager } from '../filemanager/IFileManager.model'; import { ITextFormatActions } from './actions/models/TextFormatActions.model'; import { EditorFactory } from './editors/EditorFactory'; import { LineVal, SearchFunc } from './editors/TextEditorAbstract'; export type LineSearch = SearchFunc | string | number; export declare class MarkdownManager { filePath: string; private file; private fileManager; private editor; actions: ITextFormatActions; constructor(file: string, fileManager: IFileManager, getEditor: EditorFactory, actions?: ITextFormatActions); get fileName(): string; get subHeadings(): LineVal[]; findAllLines(search: SearchFunc | string): LineVal[]; findLine(search: LineSearch): LineVal; getLineAt(lineNo: number): string; getHeadingsByLevel(level: number): LineVal[]; get document(): string; insertBulletPoint(str?: string, line?: number): this; insertAtLine(str: string, line?: number): this; insertUnderHeading(heading: string, str: string, level?: number): this; insertHeading(text: string, level: number, line?: number): this; saveFile(path?: string): unknown; }