import Main from './main' import _List from './list' import _Model from './model' import _Loader from './loader' import _Dictionary from './dictionary' import * as Interfaces from './interfaces' type Basic = { [key: string]: any } type ContainerModel = { model: Basic list?: Basic dictionary?: Basic } export type Model = _Model export type List = _List<_Model> export type Dictionary = _Dictionary<_Model> export type PackageOptions = Interfaces.IPackage export type ContainerStructure = T export type ContainerOptions = Interfaces.IContainerOptions export type Loader = _Loader export type LoaderDone = (result?: T) => void type Assign = Omit<(T & R), keyof R> & R export type ModelStructure = { model: Assign<_Model, T['model']> list: Assign<_List<_Model & T['model']>, T['list']> dictionary: Assign<_Dictionary<_Model & T['model']>, T['dictionary']> } export type ModelOptions> = Interfaces.IModelOptions< T['model'], T['list'], T['dictionary'] > export type Containers = { [key: string]: ContainerStructure } export type ContainerTypes = { [C in keyof G]: { [M in keyof G[C]['models']]: { [T in keyof G[C]['models'][M]]: G[C]['models'][M][T] } } } module.exports = Main module.exports.Alas = Main export const Alas = Main export default Main