myst-cli
Version:
Command line tools for MyST
16 lines • 511 B
TypeScript
import type { ISession } from '../session/types.js';
/**
* Fetch remote asset and write to disk.
*
* @param session session object
* @param url remote URL to fetch
* @param path destination directory to write to
* @param stem filename stem for the target file
*/
export declare function fetchRemoteAsset(session: ISession, url: string, path: string, stem: string, opts?: {
extension?: string;
}): Promise<{
name: string;
contentType: string;
}>;
//# sourceMappingURL=fetchRemoteAsset.d.ts.map