import type { StackDiagnosis, StackProblemSource, TracedResourceError } from '../../actions/diagnose'; /** * The outcome of diagnosing a stack, and what to do about it. * * This is the internal counterpart of the public `StackDiagnosis` type: it carries the same * information (available as `result`, which is what we hand out at the API boundary) plus the * behavior that belongs with it. */ export declare class Diagnosis { readonly result: StackDiagnosis; /** * No problem was found with the stack. */ static noProblem(): Diagnosis; /** * A problem was found with the stack. */ static problem(detectedBy: StackProblemSource, problems: TracedResourceError[]): Diagnosis; /** * Diagnosing the stack itself failed, so we cannot say whether there is a problem. */ static errorDiagnosing(message: string): Diagnosis; private constructor(); get type(): StackDiagnosis['type']; /** * Whether this diagnosis represents a healthy stack. */ get isNoProblem(): boolean; /** * Throw a `DeploymentError` describing the diagnosis, unless there is no problem. */ throwOnError(): void; } //# sourceMappingURL=diagnosis.d.ts.map