1 | import { ServerConnection } from '../serverconnection';
|
2 | import { PromiseDelegate } from '@lumino/coreutils';
|
3 |
|
4 |
|
5 |
|
6 | export declare class NbConvertManager {
|
7 | |
8 |
|
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 | */
|
29 | export declare namespace NbConvertManager {
|
30 | |
31 |
|
32 |
|
33 | interface IOptions {
|
34 | |
35 |
|
36 |
|
37 | serverSettings?: ServerConnection.ISettings;
|
38 | }
|
39 | |
40 |
|
41 |
|
42 | interface IExportFormats {
|
43 | |
44 |
|
45 |
|
46 | [key: string]: {
|
47 | output_mimetype: string;
|
48 | };
|
49 | }
|
50 | }
|
51 |
|
52 |
|
53 |
|
54 | export declare namespace NbConvert {
|
55 | |
56 |
|
57 |
|
58 | interface IManager extends NbConvertManager {
|
59 | }
|
60 | }
|