import { Flow as FlowDefinition } from '@chix/common'; import { ILoader, LoaderResponse } from '@chix/loader'; import { RemoteLoader } from '@chix/loader-remote'; import { FSLoaderConfig, LoadNodeResult, NodeDefinitionLocationFS } from './types'; /** * Loads and saves definitions from/to the local cache file. */ export declare class FSLoader extends RemoteLoader implements ILoader { opts: FSLoaderConfig; _cacheFile: string; constructor(opts?: FSLoaderConfig); /** * * Loads all definitions from the database. * Any missing pieces will be loaded by remote Loader. * * If you use `update` all definitions in the database will be refreshed. * * @param {Object} flow * @param {Boolean} update */ load(flow: FlowDefinition[] | FlowDefinition, update?: boolean): Promise; /** * * Loads a local file * * @param {NodeDefinitionLocationFS} location */ loadFile(location: NodeDefinitionLocationFS): Promise; /** * Saves the internal state to disk */ syncState(): void; }