import type { NativeProjectPaths } from './native-types.js'; export type NativeTrajectoryTailInspection = { status: 'clean'; file: string; } | { status: 'repairable'; file: string; reason: 'incomplete-json' | 'missing-newline'; line: number; originalHash: string; targetHash: string; tailHash: string; discardedBytes: number; } | { status: 'invalid'; file: string; line: number; message: string; }; export declare class NativeTrajectoryRepairRequiredError extends Error { readonly inspection: Exclude; readonly code = "native-trajectory-tail-repair-required"; constructor(inspection: Exclude); } export interface NativeTrajectoryRepairHooks { beforeCommit?: () => void | Promise; } export declare function inspectNativeTrajectoryTail(paths: NativeProjectPaths, name: string): Promise; export declare function assertNativeTrajectoryHealthy(paths: NativeProjectPaths, name: string): Promise; export declare function repairNativeTrajectoryTail(paths: NativeProjectPaths, name: string, hooks?: NativeTrajectoryRepairHooks): Promise | null>; //# sourceMappingURL=native-trajectory-recovery.d.ts.map