import type { BannerVariant, CompletionMessageKey } from './messages'; /** * Returns the flow variant for tracking (0, 1, or 2). * Returns '0' for docs generation to preserve deterministic output. */ export declare function getFlowVariant(): string; /** * Returns the completion message key. * Now locked to 'platform-setup' after concluding the prompt A/B test. */ export declare function getCompletionMessageKeyForVariant(): CompletionMessageKey; export declare function shouldShowCloudPrompt(): boolean; /** * Check if the given cloud URL is an enterprise URL. * Enterprise URLs are anything other than cloud.nx.app, eu.nx.app, staging.nx.app, or snapshot.nx.app. */ export declare function isEnterpriseCloudUrl(cloudUrl?: string): boolean; /** * Get the banner variant for completion messages. * Now locked to variant 2 (CLOUD-4255). * - Variant 0: Plain link - used for enterprise URLs and docs generation * - Variant 2: "Enable remote caching and automatic fixes" banner * * @param cloudUrl - The Nx Cloud URL. If enterprise, always returns '0'. */ export declare function getBannerVariant(cloudUrl?: string): BannerVariant; export declare const NxCloudChoices: string[]; declare const messageOptions: Record; export type MessageKey = keyof typeof messageOptions; interface MessageData { code: string; message: string; initial: number; choices: Array<{ value: string; name: string; }>; footer: string; hint?: string; fallback?: { value: string; key: MessageKey; }; completionMessage: CompletionMessageKey; } export declare class PromptMessages { private selectedMessages; getPrompt(key: MessageKey): MessageData; codeOfSelectedPromptMessage(key: MessageKey): string; completionMessageOfSelectedPrompt(key: MessageKey): CompletionMessageKey; } export declare const messages: PromptMessages; /** * Meta payload types for recordStat telemetry. */ 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; flowVariant: string; errorMessage: string; errorFile: string; [key: string]: string | boolean; } export interface RecordStatMetaCancel { type: 'cancel'; flowVariant?: string; aiAgent?: boolean; } export interface RecordStatMetaPrecreate { type: 'precreate'; flowVariant: string; template: string; preset: string; nodeVersion: string; packageManager: string; ghAvailable?: string; aiAgent?: boolean; } export type RecordStatMeta = RecordStatMetaStart | RecordStatMetaComplete | RecordStatMetaError | RecordStatMetaCancel | RecordStatMetaPrecreate; /** * 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 {}; //# sourceMappingURL=ab-testing.d.ts.map