interface DeployContext { domain?: string; repo?: string; branch?: string; signerMode?: string; chunkCount?: number; totalSize?: string; rpc?: string; deployTag?: string; cliFlags?: string; ci?: { runUrl?: string; workflow?: string; job?: string; sha?: string; }; } declare function setDeployContext(ctx: Partial): void; declare function installLogCapture(): void; declare function getCapturedTail(): string; declare function scrubSecrets(text: string): string; declare function buildCliFlagsSummary(flags: Record): string; declare function buildReportBody(error: Error): string; declare function buildTitle(error: Error): string; declare function buildLabels(error: Error): string[]; declare function createGhIssue(title: string, body: string, labels: string[]): string; /** * True for deploy failures caused by user input rather than a code defect, so * the bug-report prompt is NOT offered for them (#869). Scoped to DotNS name * validation: a malformed or reserved label ("Invalid domain label …", * "… reserves base names of N chars …") is something the user fixes by choosing * a different name — filing it as a bug just creates noise. The actionable error * message has already been printed to the user. Exported for unit testing. */ declare function isUserInputError(error: Error): boolean; declare function offerBugReport(error: Error): Promise; export { buildCliFlagsSummary, buildLabels, buildReportBody, buildTitle, createGhIssue, getCapturedTail, installLogCapture, isUserInputError, offerBugReport, scrubSecrets, setDeployContext };