import type { CompiledBuildPlan } from "../core/buildPlan.js"; import { type ExecutionLimits, type ArtifactReference, type GraphEvent, type GraphExecutionState } from "../core/scheduler.js"; import type { RunPaths } from "./artifacts.js"; import { type BuildDispatchSealReference } from "./buildArtifacts.js"; import { type CheckpointFailurePoint, type GraphCheckpointLease, type GraphCheckpointPaths } from "../runtime/graphCheckpoint.js"; export interface BuildGraphExecutionOptions { owner: Readonly; graphOwner: Readonly; now: string; pid: number; limits: Readonly; } export interface BuildGraphCheckpointOptions { owner: Readonly; graphOwner: Readonly; tempId: string; failAt?(point: CheckpointFailurePoint): void; } export declare function buildGraphExecutionPaths(paths: RunPaths, planVersion?: number): GraphCheckpointPaths; export declare function acquireBuildGraphExecutionLease(paths: RunPaths, owner: Readonly, options: Readonly<{ now: string; pid: number; planVersion?: number; isProcessAlive?(pid: number): boolean; }>): GraphCheckpointLease; /** * Create or recover the immutable BUILD graph under both the outer lifecycle * generation and the separately acquired nested graph generation. */ export declare function initializeBuildGraphExecution(paths: RunPaths, compiled: Readonly, options: Readonly): GraphExecutionState; export declare function recoverBuildGraphExecution(paths: RunPaths, compiled: Readonly, options: Readonly<{ owner: Readonly; graphOwner: Readonly; tempId: string; }>): GraphExecutionState; export declare function checkpointBuildGraphEvent(paths: RunPaths, compiled: Readonly, state: Readonly, event: Readonly, options: Readonly): GraphExecutionState; export declare function releaseBuildGraphExecution(paths: RunPaths, owner: Readonly, planVersion?: number): boolean; export declare function mirrorBuildNodeArtifactToGraph(paths: RunPaths, reference: Readonly, options: Readonly<{ owner: Readonly; graphOwner: Readonly; }>): ArtifactReference; export declare function mirrorBuildDispatchSealToGraph(paths: RunPaths, reference: Readonly, options: Readonly<{ owner: Readonly; graphOwner: Readonly; }>): ArtifactReference;