UNPKG

942 BTypeScriptView Raw
1/// <reference types="node" />
2import { URL } from "url";
3export declare function getDenoDir(): string;
4export declare function getDenoDepsDir(): string;
5export declare function isInDenoDir(filepath: string): boolean;
6export declare function getPluginPath(): string;
7export declare function getDenoDtsPath(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;