/** * Meta payload types for recordStat telemetry (matches CNW format). */ export interface RecordStatMetaStart { type: 'start'; [key: string]: string | boolean; } export interface RecordStatMetaComplete { type: 'complete'; [key: string]: string | boolean; } export interface RecordStatMetaError { type: 'error'; errorCode: string; errorMessage: string; [key: string]: string | boolean; } export type RecordStatMeta = RecordStatMetaStart | RecordStatMetaComplete | RecordStatMetaError; export type MessageOptionKey = 'yes' | 'skip' | 'never'; interface MessageData { code: string; message: string; initial: number; choices: Array<{ value: string; name: string; hint?: string; }>; footer: string; hint?: string; } declare const messageOptions: Record; export type MessageKey = keyof typeof messageOptions; export declare class PromptMessages { private selectedMessages; getPrompt(key: MessageKey): MessageData; codeOfSelectedPromptMessage(key: string): string; } export declare const messages: PromptMessages; /** * We are incrementing a counter to track how often create-nx-workspace is used in CI * vs dev environments. No personal information is collected. */ export declare function recordStat(opts: { command: string; nxVersion: string; useCloud: boolean; meta?: RecordStatMeta; }): Promise; export {};