UNPKG

1.01 kBTypeScriptView Raw
1/// <reference types="node" />
2import { RawSourceMap } from 'source-map';
3import { CancellablePromise } from '@theintern/common';
4export declare function expandFiles(patterns?: string[] | string): string[];
5export declare function getConfig(file?: string): CancellablePromise<{
6 config: any;
7 file?: string;
8}>;
9export declare function getConfig(argv?: string[]): CancellablePromise<{
10 config: any;
11 file?: string;
12}>;
13export declare function getConfig(file: string, argv?: string[]): CancellablePromise<{
14 config: any;
15 file?: string;
16}>;
17export declare function loadText(path: string): CancellablePromise<string>;
18export declare function normalizePath(path: string): string;
19export declare function readSourceMap(sourceFile: string, code?: string): RawSourceMap | undefined;
20export declare function isErrnoException(value: any): value is NodeJS.ErrnoException;
21export declare function mkdirp(dir: string): void;
22export declare function transpileSource(filename: string, code: string): string;