/** * [WHO]: reportDiagnostics(), buildReportPayload() * [FROM]: Depends on node:http, node:https, node:fs, node:os, node:path, node:crypto, core extension context types, ./types.js, ./redaction.js * [TO]: Consumed by extensions/builtin/diagnostics/index.ts for silent auto-upload + /report-issue manual bundles * [HERE]: extensions/builtin/diagnostics/reporter.ts - InsForge catui_issue_events adapter; reads CATUI_ISSUE_* env first, falls back to /.memory-experiments/credentials.json then ~/.memory-experiments/credentials.json (shared with SAL eval) so issue reporting "just works" once SAL is set up */ import type { ExtensionContext } from "../../../core/extensions-host/types.js"; import type { DiagnosticRecord, DiagnosticReportPayload } from "./types.js"; interface ReportResult { ok: boolean; configured: boolean; statusCode?: number; message: string; } export declare function reportDiagnostics(records: DiagnosticRecord[], userNote: string | undefined, ctx: ExtensionContext): Promise; export declare function buildReportPayload(records: DiagnosticRecord[], userNote: string | undefined, ctx: ExtensionContext): DiagnosticReportPayload; export {};