/** * Studio's anonymous usage analytics. Studio's dashboard reports page views, * with every id replaced by `:id`, to this Google Analytics property unless the * developer opted out. `nylorun start` decides and passes the id to the * Studio container (`NYLORUN_STUDIO_ANALYTICS_ID`); Studio never decides itself. */ export declare const STUDIO_ANALYTICS_ID = "G-K6RPDFH6Q6"; /** `~/.nylorun/telemetry.json`: the developer's choice, for every Tenant on the machine. */ export interface TelemetryFile { format: 1; /** False after `nylorun local telemetry disable`; absent until a choice is made. */ enabled?: boolean; /** When `nylorun start` showed the notice (ISO time); it is shown once. */ noticeShown?: string; } export type TelemetryDecision = Readonly<{ enabled: boolean; reason: string; }>; export declare const TELEMETRY_NOTICE: string; export declare function telemetryPath(nylorunRoot: string): string; export declare function readTelemetry(nylorunRoot: string): Promise; export declare function writeTelemetry(nylorunRoot: string, file: TelemetryFile): Promise; /** On unless the environment or the developer's choice turns it off. */ export declare function telemetryDecision(env: Readonly>, file: TelemetryFile): TelemetryDecision; /** `nylorun local telemetry [status|enable|disable]`. */ export declare function telemetryCommand(args: readonly string[], context: { nylorunRoot: string; env: Readonly>; out(line: string): void; }): Promise;