export type SupportedImportEncoding = "utf8" | "sjis"; export declare const openFsStreamWithEncode: (filePath: string, encoding?: SupportedImportEncoding) => NodeJS.ReadableStream; export declare const readFile: (filePath: string, encoding?: SupportedImportEncoding) => Promise<{ content: string; format: string; }>; export declare const extractFileFormat: (filepath: string) => string; /** * Check if the given path is a file. * Wrapping fs.stat() to reduce error handling code. * @param filePath */ export declare const isFile: (filePath: string) => Promise; /** * Check if the given path is a directory. * Wrapping fs.stat() to reduce error handling code. * @param dirPath */ export declare const isDirectory: (dirPath: string) => Promise;