1 | import { Flow as FlowDefinition } from '@chix/common';
|
2 | import { ILoader, LoaderResponse } from '@chix/loader';
|
3 | import { RemoteLoader } from '@chix/loader-remote';
|
4 | import { FSLoaderConfig, LoadNodeResult, NodeDefinitionLocationFS } from './types';
|
5 |
|
6 |
|
7 |
|
8 | export declare class FSLoader extends RemoteLoader implements ILoader {
|
9 | opts: FSLoaderConfig;
|
10 | _cacheFile: string;
|
11 | constructor(opts?: FSLoaderConfig);
|
12 | /**
|
13 | *
|
14 | * Loads all definitions from the database.
|
15 | * Any missing pieces will be loaded by remote Loader.
|
16 | *
|
17 | * If you use `update` all definitions in the database will be refreshed.
|
18 | *
|
19 | * @param {Object} flow
|
20 | * @param {Boolean} update
|
21 | */
|
22 | load(flow: FlowDefinition[] | FlowDefinition, update?: boolean): Promise<LoaderResponse>;
|
23 | |
24 |
|
25 |
|
26 |
|
27 |
|
28 |
|
29 | loadFile(location: NodeDefinitionLocationFS): Promise<LoadNodeResult>;
|
30 | |
31 |
|
32 |
|
33 | syncState(): void;
|
34 | }
|