import type { Checkpoint, EngineAction, RunState, TrajectoryEvent } from '../engine/types.js'; import type { SkillPackage } from '../skill/types.js'; export declare const NATIVE_RUN_IO_LIMITS: { readonly runStateBytes: number; readonly trajectoryBytes: number; readonly trajectoryEvents: 4096; readonly trajectoryEventBytes: number; readonly checkpointBytes: number; readonly pendingActionBytes: number; readonly contextBytes: number; readonly artifactsBytes: number; }; export interface NativeRunReadHooks { afterParentChainCaptured?: () => void | Promise; afterOpen?: () => void | Promise; beforeFinalCheck?: () => void | Promise; } export interface NativeRunWriteHooks { beforeCommit?: () => void | Promise; } export declare function parseNativeStoredRunStateValue(value: unknown): RunState; export declare function startNativeRun(pkg: SkillPackage, runId: string, skillHash: string): RunState; export declare function readNativeRunState(changeDir: string, hooks?: NativeRunReadHooks): Promise; export declare function writeNativeRunState(changeDir: string, state: RunState, hooks?: NativeRunWriteHooks): Promise; export declare function removeNativeRunState(changeDir: string): Promise; export declare function readNativeTrajectory(changeDir: string, relativePath: string, hooks?: NativeRunReadHooks): Promise; /** Raw, bounded trajectory text for deterministic tail inspection and recovery. */ export declare function readNativeTrajectoryText(changeDir: string, relativePath: string, hooks?: NativeRunReadHooks): Promise; /** Compare-and-swap replacement used only to repair an already inspected trajectory tail. */ export declare function replaceNativeTrajectoryText(changeDir: string, relativePath: string, content: string, expectedHash: string, hooks?: NativeRunWriteHooks): Promise; export declare function appendNativeTrajectory(changeDir: string, relativePath: string, event: TrajectoryEvent, hooks?: NativeRunWriteHooks): Promise; export declare function readNativeArtifacts(changeDir: string, relativePath: string, hooks?: NativeRunReadHooks): Promise>; export declare function writeNativeArtifacts(changeDir: string, relativePath: string, artifacts: Record, hooks?: NativeRunWriteHooks): Promise; export declare function readNativeContext(changeDir: string, relativePath: string, hooks?: NativeRunReadHooks): Promise; export declare function writeNativeContext(changeDir: string, relativePath: string, context: string, hooks?: NativeRunWriteHooks): Promise; export declare function readNativePendingAction(changeDir: string, relativePath: string, hooks?: NativeRunReadHooks): Promise; export declare function writeNativePendingAction(changeDir: string, relativePath: string, action: EngineAction, hooks?: NativeRunWriteHooks): Promise; export declare function clearNativePendingAction(changeDir: string, relativePath: string): Promise; export declare function readNativeCheckpoint(changeDir: string, relativePath: string, hooks?: NativeRunReadHooks): Promise; export declare function writeNativeCheckpoint(changeDir: string, relativePath: string, checkpoint: Checkpoint, hooks?: NativeRunWriteHooks): Promise; //# sourceMappingURL=native-run-store.d.ts.map