/* auto-generated by NAPI-RS */ /* eslint-disable */ export class Creator { templateRoot: string destinationRoot: string constructor(templateRoot: string, destinationRoot: string) createFileFromTemplate(templateName: string, templatePath: string, destPath: string, options: CreateOptions): Promise } export const enum CompilerType { Webpack4 = 'Webpack4', Webpack5 = 'Webpack5', Vite = 'Vite' } export interface CreateOptions { css?: CSSType cssExt?: string framework?: FrameworkType description?: string projectName: string version?: string date?: string typescript?: boolean buildEs5?: boolean template: string pageName?: string compiler?: CompilerType setPageName?: string subPkg?: string pageDir?: string setSubPkgPageName?: string changeExt?: boolean isCustomTemplate?: boolean pluginType?: string platforms?: Array } export function createPage(conf: Page, handlers: Record any>): Promise export function createPlugin(conf: Plugin): Promise export function createProject(conf: Project, handlers: Record any>): Promise export const enum CSSType { None = 'None', Sass = 'Sass', Stylus = 'Stylus', Less = 'Less' } export const enum FrameworkType { React = 'React', Preact = 'Preact', Vue3 = 'Vue3', Solid = 'Solid', None = 'None' } export const enum NpmType { Yarn = 'Yarn', Cnpm = 'Cnpm', Pnpm = 'Pnpm', Npm = 'Npm' } export interface Page { projectDir: string projectName: string template: string templateRoot: string description?: string pageName: string date?: string framework: FrameworkType css: CSSType typescript?: boolean compiler?: CompilerType version?: string isCustomTemplate?: boolean customTemplatePath?: string basePageFiles: Array period: PeriodType subPkg?: string pageDir?: string } export const enum PeriodType { CreateAPP = 'CreateAPP', CreatePage = 'CreatePage' } export interface Plugin { projectRoot: string projectName: string description?: string pluginType: string templateRoot: string version: string template: string } export interface Project { projectRoot: string projectName: string npm: NpmType description?: string typescript?: boolean buildEs5?: boolean template: string css: CSSType autoInstall?: boolean framework: FrameworkType templateRoot: string version: string date?: string compiler?: CompilerType period: PeriodType platforms?: Array }