//#region extensions/crypto/src/services/issue-reporter.d.ts /** * Issue Reporter Service — file GitHub issues from chat. * * Persistent opt-in per user. When enabled, the agent can proactively * suggest filing issues when it detects bugs, errors, or UX problems. * * Issues are filed via `gh issue create` against the openclawnch repo. * Requires `gh` CLI installed and authenticated. */ interface IssueReporterConfig { /** Whether the user has opted in to issue reporting. */ enabled: boolean; /** ISO timestamp of when opt-in was granted. */ optedInAt?: string; /** Number of issues filed. */ issueCount: number; } declare function getReporterConfig(userId: string): IssueReporterConfig; declare function isReportingEnabled(userId: string): boolean; declare function enableReporting(userId: string): void; declare function disableReporting(userId: string): void; /** * File a GitHub issue. Returns the issue URL on success. * * Labels are auto-applied: * - `from-agent` on every issue * - `bug` / `enhancement` / `question` based on the category param */ declare function fileIssue(opts: { title: string; body: string; category: 'bug' | 'feature' | 'ux' | 'question'; userId: string; }): { url: string; } | { error: string; }; /** Reset for testing. */ declare function resetReporter(): void; //#endregion export { disableReporting, enableReporting, fileIssue, getReporterConfig, isReportingEnabled, resetReporter }; //# sourceMappingURL=issue-reporter.d.mts.map