/**
 * Returns true when remote error reporting is active (default: on).
 * Disabled by setting env var PLANU_TELEMETRY=off.
 */
export declare function isErrorReportingEnabled(): boolean;
/**
 * Sanitizes an error message by removing filesystem paths and home-dir fragments
 * so no user-specific data is transmitted.
 */
export declare function sanitizeErrorMessage(message: string): string;
/**
 * Classifies a telemetry event as tool_blocked or tool_error.
 * Gate blocks (DoD, validate score, spec locked, invalid transition) → tool_blocked.
 * Unhandled exceptions → tool_error.
 */
export declare function classifyToolEvent(errorMessage: string, errorType?: string): 'tool_error' | 'tool_blocked';
/**
 * Sends a tool_error event to Supabase. Fire-and-forget — never throws.
 * Call this from safe-handler catch blocks after returning isError:true to the user.
 */
export declare function reportToolError(toolName: string, error: unknown): void;
/**
 * Sends a tool_error or tool_blocked event for business-logic validation failures.
 * Gate/policy blocks (DoD, spec locked, invalid transitions) emit tool_blocked.
 * Other expected errors (missing params, not-found, etc.) emit tool_error.
 * Fire-and-forget — never throws.
 */
export declare function reportToolValidationError(toolName: string, message: string): void;
//# sourceMappingURL=error-reporter.d.ts.map