import { IDictionary, IRawModel } from 'datx-utils'; import { PureCollection } from '../PureCollection'; import { PureModel } from '../PureModel'; import { IModelConstructor } from './IModelConstructor'; import { IRawCollection } from './IRawCollection'; import { IType } from './IType'; export interface ICollectionConstructor { types: Array; views: IDictionary<{ modelType: IType | PureModel; sortMethod?: string | ((PureModel: any) => any); unique?: boolean; mixins?: Array<(view: any) => any>; }>; new (data?: Array | IRawCollection): T; }