UNPKG

972 BTypeScriptView Raw
1import { IClient, IConfig, IProject, ISession, ITelemetry, InfoItem, IonicContext } from '../definitions';
2export interface TelemetryDeps {
3 readonly client: IClient;
4 readonly config: IConfig;
5 readonly getInfo: () => Promise<InfoItem[]>;
6 readonly ctx: IonicContext;
7 readonly project?: IProject;
8 readonly session: ISession;
9}
10export declare class Telemetry implements ITelemetry {
11 protected readonly client: IClient;
12 protected readonly config: IConfig;
13 protected readonly getInfo: () => Promise<InfoItem[]>;
14 protected readonly ctx: IonicContext;
15 protected readonly project?: IProject;
16 protected readonly session: ISession;
17 constructor({ config, client, getInfo, ctx, project, session }: TelemetryDeps);
18 sendCommand(command: string, args: string[]): Promise<void>;
19}
20export declare function sendCommand({ config, client, getInfo, ctx, session, project }: TelemetryDeps, command: string, args: string[]): Promise<void>;