@telcomdataperu/zeus-vue-model-manager
Version:
Vue 3 Model Manager for Microfrontends with OpenUI5-style API - Part of ZEUS Platform by TelcomdataPeru
37 lines (36 loc) • 1.7 kB
TypeScript
import { ModelManager } from './core/ModelManager';
import { ModelManagerConfig } from './types';
export { JsonModel } from './core/JsonModel';
export { ModelManager } from './core/ModelManager';
export { GlobalRegistry } from './core/GlobalRegistry';
export type { RegistryStatistics, CrossScopeModelAccess } from './core/GlobalRegistry';
export { useModel, useModels, useModelFromScope, useModelWithDefault, useModelsFromScope, useModelsShallow, useModelsRaw, setComposableScope, configureComposables, getComposableContext } from './composables';
export type { UseModelOptions, UseModelsOptions } from './composables';
export * from './types';
/**
* Creates and registers a new ModelManager
*/
export declare function createModelManager(scope: string, config?: Partial<ModelManagerConfig>): ModelManager;
/**
* Development helper - enables global auditing
*/
export declare function enableGlobalAuditing(): void;
/**
* Development helper - dumps complete registry state
*/
export declare function dumpGlobalState(): void;
/**
* Get statistics for all registered managers
*/
export declare function getGlobalStatistics(): {
registry: import('./core/GlobalRegistry').RegistryStatistics;
managers: Record<string, any>;
};
/**
* Cross-microfrontend model access
*/
export declare function getModelFromMicrofrontend<T extends Record<string, unknown> = Record<string, unknown>>(sourceScope: string, targetScope: string, modelName: string): import('./core/JsonModel').JsonModel<T> | undefined;
/**
* Share a model between microfrontends
*/
export declare function shareModelBetweenMicrofrontends(sourceScope: string, targetScope: string, modelName: string, newName?: string): boolean;