UNPKG

730 BTypeScriptView Raw
1export interface LoadResult {
2 path?: string;
3 config: any;
4}
5export declare function resolve(cwd: string, filename?: string): Promise<string | void>;
6export declare function resolveSync(cwd: string, filename?: string): string | void;
7export declare function find(dir: string): Promise<string | void>;
8export declare function findSync(dir: string): string | void;
9export declare function load(cwd: string, filename?: string): Promise<LoadResult>;
10export declare function loadSync(cwd: string, filename?: string): LoadResult;
11export declare function readFile(filename: string): Promise<any>;
12export declare function readFileSync(filename: string): any;
13export declare function parse(contents: string, filename: string): any;