export interface BuildStepFailureInput { label: string; exitCode: number; signal: string | null; stderrTail: string; template?: string; app?: string; } /** * The last lines of a failed child's stderr, safe to send off the machine: * colour codes stripped, the user's home directory replaced, URL credentials and * secret env assignments redacted before the tail is cut (a secret split by the * cut must not survive as a fragment), whole lines only. Other credential-looking * values are redacted downstream by the telemetry writer. */ export declare function scrubStderrTail(stderr: string): string; /** * The error and context for a build step that exited non-zero. The message * names only the step: the app or template is a tag, so one failing step is one * issue instead of one issue per app (and a private app name never lands in an * issue title). */ export declare function buildStepFailureReport(input: BuildStepFailureInput): { error: Error; tags: Record; extra: Record; };