import { Plugin, PluginServiceApi } from '@cloudbase/framework-core'; import { NuxtBuilder } from '@cloudbase/nuxt-builder'; declare const DEFAULT_INPUTS: { memory: number; timeout: number; runtime: string; entry: string; name: string; path: string; buildCommand: string; installCommand: string; }; /** * 导出接口用于生成 JSON Schema 来进行智能提示 */ export interface IFrameworkPluginNuxtInputs { /** * Nuxt 配置文件所在目录,默认当前项目所在目录 * @default ./ */ entry?: string; /** * 访问子路径,如 `/nuxt-ssr` * @default /nuxt-ssr */ path?: string; /** * 服务名,如`nuxt-ssr` * @default nuxt-ssr */ name?: string; /** * 安装命令,如`npm install`,没有可不传 * @default npm install */ installCommand?: string; /** * 构建命令,如`npm run build`,没有可不传 * @default npm run build */ buildCommand?: string; /** * 函数运行时版本 * @default "Nodejs10.15" */ runtime?: 'Nodejs10.15' | 'Nodejs8.9'; /** * 函数运行时内存配置 * @default 128 */ memory?: 128 | 256 | 512 | 1024 | 2048; /** * 函数超时时间(1 - 60S) */ timeout?: number; /** * 包含环境变量的键值对 */ envVariables?: Record; } type ResolvedInputs = typeof DEFAULT_INPUTS & IFrameworkPluginNuxtInputs; declare class NuxtPlugin extends Plugin { name: string; api: PluginServiceApi; inputs: IFrameworkPluginNuxtInputs; protected resolvedInputs: ResolvedInputs; protected buildOutput: any; protected builder: NuxtBuilder; protected functionPlugin: any; constructor(name: string, api: PluginServiceApi, inputs: IFrameworkPluginNuxtInputs); /** * 初始化 */ init(): Promise<{ stdout: string; stderr: string; } | undefined>; compile(): Promise; /** * 执行本地命令 */ run(): Promise; /** * 删除资源 */ remove(): Promise; /** * 生成代码 */ genCode(): Promise; /** * 构建 */ build(): Promise; /** * 部署 */ deploy(): Promise; } export declare const plugin: typeof NuxtPlugin; export {}; //# sourceMappingURL=index.d.ts.map