import { type RuntimeStore, type WorkflowRun } from '../engine/runtime.js'; import { nativeProjectPaths } from './native-paths.js'; import type { NativePortableState } from './native-portable-types.js'; import type { NativeProjectPaths } from './native-types.js'; import type { ApplicationIdentity } from '../workflow-application/index.js'; /** A validated portable checkpoint still requires an explicit mutating recovery. */ export declare class NativeSdkRunRecoveryRequiredError extends Error { readonly projectRoot: string; readonly change: string; readonly interrupted: boolean; readonly code = "NATIVE_SDK_RUN_RECOVERY_REQUIRED"; constructor(projectRoot: string, change: string, interrupted?: boolean, application?: ApplicationIdentity); } export declare function isNativeSdkRunRecoveryRequiredError(error: unknown): error is NativeSdkRunRecoveryRequiredError; /** Resolve only one exact archived change; a reused name must not select an arbitrary Run. */ export declare function findNativeSdkArchivedStateFile(paths: Awaited>, runId: string): Promise; /** Read the unprojected local record when repairing an interrupted Run creation. */ export declare function readNativeSdkRunRecord(projectRoot: string, runId: string): Promise; export declare function hasNativeManagedRunMarker(file: string): Promise; export declare function hasNativePortableRunCheckpoint(file: string, runId: string): Promise; /** Read the committed Supervisor result without restoring the workspace's Run or owner. */ export declare function inspectNativeSdkSupervisorArchive(paths: NativeProjectPaths, file: string, name: string): Promise<{ run: WorkflowRun; state: NativePortableState; artifactRootRef: string; application: null; archiveRef: string; } | null | undefined>; export declare function writeNativeManagedRunState(file: string, state: NativePortableState, containedRoot: string, run?: WorkflowRun, archiveReceipt?: unknown, applicationIdentity?: ApplicationIdentity): Promise; /** Keep the existing portable state file current when a built-in SDK Run commits. */ export declare function createNativeSdkStateStore(projectRoot: string, options?: { store?: RuntimeStore; identity?: ApplicationIdentity; readOnly?: boolean; allowBranchRebind?: boolean; rootRunId?: string; }, projectionRead?: boolean): RuntimeStore; //# sourceMappingURL=native-sdk-state-store.d.ts.map