UNPKG

993 BTypeScriptView Raw
1/// <reference types="node" />
2import { URL } from "url";
3import ts from "typescript/lib/tsserverlibrary";
4export declare function getDenoDir(): string;
5export declare function getDenoDepsDir(): string;
6export declare function getPluginPath(tsLsHost: ts.LanguageServiceHost): string;
7export declare function getDenoDtsPath(tsLsHost: ts.LanguageServiceHost, specifier: string): string | undefined;
8export declare function getModuleWithQueryString(moduleName: string): string | undefined;
9export declare function normalizeFilepath(filepath: string): string;
10export declare function escapeRegExp(str: string): string;
11export declare function sleep(ms: number): Promise<void>;
12export declare function isHttpURL(str: string): boolean;
13export declare function hashURL(url: URL): string;
14export declare function isValidDenoDocument(languageID: string): boolean;
15export declare function isUntitledDocument(filename: string): boolean;
16export declare function pathExistsSync(filepath: string): boolean;