import type { Buffer } from 'buffer'; import Fs from '@modern-js/utils/fs-extra'; import type { Storage } from './storer/storage'; export declare class FileReader { private storage; private fs; constructor(storage: Storage); readFile(path: string, encoding?: 'utf-8'): Promise; readFile(path: string, encoding?: 'buffer'): Promise; readFileFromSystem(path: string, encoding?: 'utf-8'): Promise; readFileFromSystem(path: string, encoding?: 'buffer'): Promise; _readFileFactory(fs: typeof Fs): (path: string, encoding?: "utf-8" | "buffer") => Promise; /** * Clear the fileCache entriely. */ reset(fs?: typeof Fs): Promise; private encodingContent; } export declare const fileReader: FileReader;