index.d.ts 640 B

123456789101112
  1. /// <reference types="node" />
  2. /// <reference types="node" />
  3. import fs from 'fs';
  4. export declare function readFile(path: string, encoding?: BufferEncoding): Promise<string>;
  5. export declare function readJsonFile<T>(path: string, encoding?: BufferEncoding): Promise<T>;
  6. export declare function readDir(dir: string): Promise<fs.Dirent[]>;
  7. export declare function readJsonDir<T extends object>(dir: string, filenameProperty?: string): Promise<T[]>;
  8. export declare function getSubdirNames(dir: string): Promise<string[]>;
  9. export declare function dotEnv(path: string): Promise<{
  10. [key: string]: string;
  11. }>;
  12. //# sourceMappingURL=index.d.ts.map