UNPKG

510 BTypeScriptView Raw
1/// <reference types="node" />
2import { readFile, writeFile } from 'fs';
3export declare const normalizePath: (path: string) => string;
4export declare const getRelative: (from: string, to: string) => string;
5export declare const getMatchString: (pattern: string, selected: number) => (str: string) => string[];
6export declare const pReadFile: typeof readFile.__promisify__;
7export declare const pWriteFile: typeof writeFile.__promisify__;
8export declare const getFileContent: (file: string) => Promise<string>;