UNPKG

1 kBTypeScriptView Raw
1import { PromptModule } from '@ionic/cli-framework-prompts';
2import { IClient, IConfig, ILogger, ISession, IShell, InfoItem, IonicContext, IonicEnvironment, IonicEnvironmentFlags } from '../definitions';
3export interface EnvironmentDeps {
4 readonly client: IClient;
5 readonly config: IConfig;
6 readonly flags: IonicEnvironmentFlags;
7 readonly getInfo: () => Promise<InfoItem[]>;
8 readonly log: ILogger;
9 readonly ctx: IonicContext;
10 readonly prompt: PromptModule;
11 readonly session: ISession;
12 readonly shell: IShell;
13}
14export declare class Environment implements IonicEnvironment {
15 readonly flags: IonicEnvironmentFlags;
16 readonly client: IClient;
17 readonly config: IConfig;
18 getInfo: () => Promise<InfoItem[]>;
19 readonly log: ILogger;
20 readonly prompt: PromptModule;
21 session: ISession;
22 readonly shell: IShell;
23 readonly ctx: IonicContext;
24 constructor({ client, config, flags, getInfo, log, ctx, prompt, session, shell }: EnvironmentDeps);
25}