import { IPartService } from '../../interface'; import { Base } from '../base'; import { RefImpl, IPart } from '../../types'; export declare class Part extends Base implements IPartService { #private; /** 存储所有部件的配置信息 */ config: IPart[]; /** 存储部件ID和实例的映射关系 */ instances: Map; /**异步获取数据 */ dynamicFetch: any; /** 辅助线显示状态 */ auxLine: boolean; constructor(); get auxLineState(): boolean; set auxLineState(value: boolean); init(config: IPart[]): void; add(config: IPart): Promise; delete(id: string): void; register(partId: string, instance: RefImpl): void; unregister(partId: string): void; getById(partId: string): RefImpl | undefined; show(ids: string[]): void; hide(ids: string[]): void; update(ids: string[]): void; callMethod(partId: string, methodName: string, ...args: any[]): unknown; getInternalById(partId: string): RefImpl | undefined; loadComponent({ id, component, routeName, compsMapping, markRaw, loadRemoteModule, mode }: { id: string; component: string; routeName: string; compsMapping: Record; markRaw: (component: any) => any; loadRemoteModule?: (componentName: string) => any; mode: string; }): Promise; } declare const part: Part; export default part;