import { t as CLITelemetryStore } from "./types-ZNH3prAd.js";
/**
 * @public
 * Symbol used to store CLI telemetry state on globalThis.
 * Use the accessor functions instead of accessing this directly.
 */
declare const CLI_TELEMETRY_SYMBOL: unique symbol;
type TraceErrorReporter = (error: Error) => void;
/**
 * @public
 */
declare function getCliTelemetry(): CLITelemetryStore;
/**
 * Sets the global CLI telemetry state.
 * @internal
 */
declare function setCliTelemetry(telemetry: CLITelemetryStore, options?: {
  reportTraceError?: TraceErrorReporter;
}): void;
/**
 * Reports an error to the CLI command trace. Called from SanityCommand.catch()
 * for real command errors (not user aborts).
 * @internal
 */
declare function reportCliTraceError(error: Error): void;
/**
 * Clears the global CLI telemetry store.
 * @internal
 */
declare function clearCliTelemetry(): void;
/**
 * Base information needed for telemetry file operations.
 * Contains common data used by both file path generation and pattern matching.
 */
interface TelemetryBaseInfo {
  /** Base filename pattern without sessionId suffix */
  basePattern: string;
  /** Base directory where telemetry files are stored */
  directory: string;
  /** Environment: 'staging' or 'production' */
  environment: string;
  /** Hashed token (first 8 chars of SHA256) for privacy */
  hashedToken: string;
}
/**
 * Gets the base telemetry information needed for file operations.
 *
 * This shared utility extracts common logic used by:
 * - `generateTelemetryFilePath` - for generating session-specific file paths
 * - `findTelemetryFiles` - for discovering all telemetry files via glob patterns
 *
 * @returns Promise resolving to base telemetry information
 * @throws Error if no auth token is found
 * @internal
 */
declare function getTelemetryBaseInfo(): Promise<TelemetryBaseInfo>;
/**
 * Fallback logger used when telemetry has not been initialized.
 * Exported for use in tests only — do not use in plugins or external code.
 * @internal
 */
declare const noopLogger: CLITelemetryStore;
export { getCliTelemetry as a, clearCliTelemetry as i, getTelemetryBaseInfo as n, reportCliTraceError as o, CLI_TELEMETRY_SYMBOL as r, setCliTelemetry as s, noopLogger as t };
//# sourceMappingURL=noopTelemetry-BJRIvASI.d.ts.map