myst-cli
Version:
Command line tools for MyST
18 lines • 1.93 kB
TypeScript
import type { References, GenericParent } from 'myst-common';
import type { PageFrontmatter } from 'myst-frontmatter';
import type { TemplatePartDefinition, TemplateYml } from 'myst-templates';
import type { TypstResult } from 'myst-to-typst';
import type { ISession } from '../session/types.js';
import type { ExportWithOutput, ExportResults, ExportFnOptions } from './types.js';
export declare const DEFAULT_BIB_FILENAME = "main.bib";
export declare function isTypstAvailable(): string | null;
export declare function runTypstExecutable(session: ISession, typstFile: string): Promise<void>;
export declare function mdastToTypst(session: ISession, mdast: GenericParent, references: References, frontmatter: PageFrontmatter, templateYml: TemplateYml | null, printGlossaries: boolean): TypstResult;
export declare function extractTypstPart(session: ISession, mdast: GenericParent, references: References, partDefinition: TemplatePartDefinition, frontmatter: PageFrontmatter, templateYml: TemplateYml): TypstResult | TypstResult[] | undefined;
export declare function localArticleToTypstRaw(session: ISession, templateOptions: ExportWithOutput, opts?: ExportFnOptions): Promise<ExportResults>;
export declare function localArticleToTypstTemplated(session: ISession, file: string, templateOptions: ExportWithOutput, opts?: ExportFnOptions): Promise<ExportResults>;
export declare function runTypstExport(// DBG: Must return an info on whether glossaries are present
session: ISession, file: string, exportOptions: ExportWithOutput, opts?: ExportFnOptions): Promise<ExportResults>;
export declare function runTypstZipExport(session: ISession, file: string, exportOptions: ExportWithOutput, opts?: ExportFnOptions): Promise<ExportResults>;
export declare function runTypstPdfExport(session: ISession, file: string, exportOptions: ExportWithOutput, opts?: ExportFnOptions): Promise<ExportResults>;
//# sourceMappingURL=typst.d.ts.map