import type { InjectedState } from '../../common/types'; import type { Modules } from '../../config'; type FactoryFunctions = Modules['factoryFunctions']; type InstantiableCategory = 'component' | 'flow'; /** * The module instantiator takes a partial InjectedState object, missing only the "moduleMeta" object (module name and instance name) * Based on the options provided to the instantiator, along with the module name, it will inject moduleMeta to the existing InjectedState and use that * to initialise the module. */ export type InjectedDependencies = Omit; /** * This factory will generate another function which will * 1) load a module by module name, defined in the dictionary in Configuration.ts; * 2) initialise it, which generates a context object, aka an "instance" of the module * 3) tag that instance with an "instance name" * * @param globalState All options provided to OneSdk merged with resulting globalState object * @returns A function to load OneSdk modules */ export declare const mkModuleInstantiator: (globalState: InjectedDependencies) => FactoryFunctions[Category]; export {}; //# sourceMappingURL=componentLoader.d.ts.map