UNPKG

1.72 kBTypeScriptView Raw
1import { ServerConnection } from '../serverconnection';
2import { PromiseDelegate } from '@lumino/coreutils';
3/**
4 * The nbconvert API service manager.
5 */
6export declare class NbConvertManager {
7 /**
8 * Create a new nbconvert manager.
9 */
10 constructor(options?: NbConvertManager.IOptions);
11 /**
12 * The server settings used to make API requests.
13 */
14 readonly serverSettings: ServerConnection.ISettings;
15 /**
16 * Fetch and cache the export formats from the expensive nbconvert handler.
17 */
18 protected fetchExportFormats(): Promise<NbConvertManager.IExportFormats>;
19 /**
20 * Get the list of export formats, preferring pre-cached ones.
21 */
22 getExportFormats(force?: boolean): Promise<NbConvertManager.IExportFormats>;
23 protected _requestingFormats: PromiseDelegate<NbConvertManager.IExportFormats> | null;
24 protected _exportFormats: NbConvertManager.IExportFormats | null;
25}
26/**
27 * A namespace for `BuildManager` statics.
28 */
29export declare namespace NbConvertManager {
30 /**
31 * The instantiation options for a setting manager.
32 */
33 interface IOptions {
34 /**
35 * The server settings used to make API requests.
36 */
37 serverSettings?: ServerConnection.ISettings;
38 }
39 /**
40 * A namespace for nbconvert API interfaces.
41 */
42 interface IExportFormats {
43 /**
44 * The list of supported export formats.
45 */
46 [key: string]: {
47 output_mimetype: string;
48 };
49 }
50}
51/**
52 * A namespace for builder API interfaces.
53 */
54export declare namespace NbConvert {
55 /**
56 * The interface for the build manager.
57 */
58 interface IManager extends NbConvertManager {
59 }
60}