import {CLEAR_HISTORY_COMMAND} from 'lexical';
import {useLexicalComposerContext} from '@lexical/react/LexicalComposerContext';
// import fileHelper from './fileHelper'
const fs = window.require("fs").promises

export async function importFile(pathName) {
    return await fs.readFile(pathName)
}

export async function overWriteFile(filePath,jsonText) {
    await fs.writeFile(filePath,jsonText,{"encoding":"utf-8"})
}