myst-cli
Version:
Command line tools for MyST
19 lines • 794 B
TypeScript
import { ExportFormats } from 'myst-frontmatter';
import type { ISession } from '../../session/types.js';
/**
* Get default filename for saving export.
*
* This uses the project slug if available, or creates a new slug from the filename otherwise.
*/
export declare function getDefaultExportFilename(session: ISession, file: string, projectPath?: string): string;
/**
* Get default folder for saving export. Folder will be created on export.
*
* The default folder is:
* <root>/_build/exports/
*
* If the file is part of a project, the root is the project folder;
* if not, the root is the file folder.
*/
export declare function getDefaultExportFolder(session: ISession, file: string, format: ExportFormats, projectPath?: string): string;
//# sourceMappingURL=defaultNames.d.ts.map