import type { Entity, ItemConfig } from "../AppConfig"; /** * Factory function for creating a new model instance. */ export type ModelFactory = (itemConfig?: ItemConfig) => Promise | Entity; /** * Metadata for a registered model type. */ export interface ModelManifest { /** * The App item type for the model. */ itemType: string; /** * Returns the factory for creating instances of the model. */ getModel: ModelFactory; }