import { Flow as FlowDefinition } from '@chix/common'; import { LoaderResponse } from './interfaces'; import { Loader } from './loader'; import { PreloadResult } from './remote'; export interface NPMLoaderOptions { paths?: string[]; } /** * Loads and saves definitions from npm. * * If npm is used, graphs cannot contain providers. * * All components must be available through npm installed packages. */ export declare class NPMLoader extends Loader { pkgKey: string; sources: { '@': {}; }; options: { paths: string[]; }; constructor(options?: NPMLoaderOptions); _init(): void; preload(): Promise; /** * Node Definitions from npm are already preloaded. * * In this case load just checks whether graph dependencies are * all known to the loader or else send an error back to the callback. * * @param {Object} flow * @param {Boolean} update */ load(flow: FlowDefinition | FlowDefinition[]): Promise; /** * * NPM loader does not store it's definitions * */ saveNodeDefinition(): void; }