UNPKG

@lcap/builder

Version:
17 lines (16 loc) 858 B
import { MaterialSchema } from '@lcap/material-parser'; import { type NaslUIComponentConfig } from '../overload'; import { ComponentMetaInfo } from './types'; export declare const getConfigComponents: (rootPath: string) => any; export declare const getPackName: (name: any, version: any) => string; export declare const getComponentConfigByName: (name: string, list: NaslUIComponentConfig[]) => NaslUIComponentConfig | undefined; export declare function getComponentMetaInfos(rootPath: string, parseAPI?: boolean): ComponentMetaInfo[]; export declare function removeComponentFiles(rootPath: string, name: string): void; export interface WriteOptions { type: 'pc' | 'h5' | 'both'; prefix: string; } export interface Schema extends MaterialSchema { write?: WriteOptions; } export declare function getProjectSourceSchema(rootPath?: string): Schema;