import { type ErrorEvent } from './sentry-protocol.js'; export interface ErrorReportContext { /** The CLI version, `this.config.version`. */ version: string; /** The oclif command id, e.g. `deploy` or `checks:list`. */ command?: string; /** The detected CLI mode: interactive, ci or agent. */ cliMode?: string; /** Whether a command caught and printed the error, rather than it ending the command. */ handled?: boolean; } /** The environment a release reports as, from its version. */ export declare function releaseEnvironment(version: string): string; /** * The Sentry event for `err`, which happened at `timestamp` (ms). `packageRoot` * is a real path, as the stack's files are. Exported for tests. */ export declare function buildErrorEvent(err: Error, context: ErrorReportContext, { packageRoot, timestamp, }?: { packageRoot?: string; timestamp?: number; }): ErrorEvent;