myst-cli
Version:
Command line tools for MyST
12 lines • 527 B
TypeScript
import type { ISession } from '../session/types.js';
/**
* Resolve a path to an absolute local path, with optional remote URL fetching.
*
* When `allowRemote` is set and the input is a URL, the content is fetched and
* cached locally, and the returned path points to that cached file.
*/
export declare function resolveToAbsolute(session: ISession, basePath: string, relativePath: string, opts?: {
allowNotExist?: boolean;
allowRemote?: boolean;
}): Promise<string>;
//# sourceMappingURL=resolveToAbsolute.d.ts.map