import { type JsonObject } from '../depot/shape.js'; export declare function isBuildFailure(status: string | undefined): boolean; export interface BuildSummary { buildId: string | undefined; status: string | undefined; createdAt: string | undefined; startedAt: string | undefined; finishedAt: string | undefined; buildDurationSeconds: number | undefined; savedDurationSeconds: number | undefined; cachedSteps: number | undefined; totalSteps: number | undefined; cacheHitRatio: number | undefined; } export declare function parseBuild(source: JsonObject): BuildSummary; export interface BuildStep { name: string | undefined; digest: string | undefined; startedAt: string | undefined; completedAt: string | undefined; cacheState: string | undefined; error: string | undefined; hasLogs: boolean; durationSeconds: number | undefined; } export declare function parseBuildStep(source: JsonObject): BuildStep; /** * Container builds have no server-side diagnosis, so pick the step to investigate the way a human * would: the one that reported an error, else the last step that actually executed and has logs. */ export declare function selectFailingStep(steps: readonly BuildStep[]): BuildStep | undefined; //# sourceMappingURL=build.d.ts.map