import { MaterialSpec, NpmInfo, ComponentSpecRaw } from 'vitis-lowcode-types';
import type InnerMaterial from '../material';
import { EventEmitter } from 'eventemitter3';
export default class Material extends EventEmitter implements MaterialSpec {
    private readonly material;
    constructor(material: InnerMaterial);
    /**
     * 加载组件规格
     * @param infos
     */
    load: (infos: NpmInfo[]) => Promise<boolean[]>;
    has: (packageName: string) => boolean;
    get: (packageName: string) => ComponentSpecRaw;
    getAll: () => Map<string, ComponentSpecRaw>;
    addComponentSpec: (packageName: string, spec: ComponentSpecRaw) => void;
}
