UNPKG

@lcap/builder

Version:
12 lines (11 loc) 694 B
import { type MaterialSchema, type MaterialComponent } from '@lcap/material-parser'; import { ProjectMetaInfo } from '../utils/project'; import { WriteOptions } from '../utils/lcap'; export interface MaterialComponentSchema { meta: Omit<MaterialSchema, 'components'>; component: MaterialComponent; write: WriteOptions; } export declare function createForSchema(rootPath: string, metaInfo: ProjectMetaInfo, schema: MaterialComponentSchema): Promise<void>; export declare function setImportStyle(rootPath: string, schema: MaterialSchema): void; export declare function executeCreateForSchema(rootPath: string, metaInfo: ProjectMetaInfo, schema: string, name?: string): Promise<void>;