import { ApplicationPackage } from '../package/application-package'; import { Command } from '../command/command-protocol'; import { ExpressionHandler } from '../el/expression-handler'; import { ApplicationConfig } from '../package/application-config'; import { Framework } from '@celljs/frameworks/lib/detector/detector-protocol'; import { Settings } from '../settings/settings-protocol'; export interface CliContext { program: Command; pkg: ApplicationPackage; cfg: ApplicationConfig; framework?: Framework; settings?: Settings; output: Record; options?: Record; propsDir?: string; propsFile?: string; [key: string]: any; } export interface CreateCliContextOptions extends Record { args: string[]; targets: string[]; mode: string[]; prod: boolean; settings?: Settings; dev: boolean; runtime?: string; port?: string; options?: Record; propsDir?: string; propsFile?: string; framework?: Framework; skipAutoInstall?: boolean; } export declare namespace CliContext { function create(options: CreateCliContextOptions, projectPath?: string, skipComponent?: boolean): Promise; } export declare namespace ContextUtils { function getCurrent(): CliContext; function setCurrent(current: CliContext): void; function createCliContext(options: CreateCliContextOptions, projectPath?: string): Promise; function mergeContext(cliContext: CliContext, options?: Record): CliContext; } export type InitContext = CliContext; export type ConfigContext = CliContext; export type InfoContext = CliContext; export interface ServeContext extends CliContext { dev?: boolean; port?: string; } export interface PropsContext extends CliContext { props: { [key: string]: any; }; target: string; expressionHandler: ExpressionHandler; } export type CompileContext = CliContext; export type BuildContext = CliContext; export type DeployContext = CliContext; //# sourceMappingURL=context-protocol.d.ts.map