import { z } from "zod"; /** 读回 schema(宪法 [ref] §2:边界读一律 safeParse,不裸铸)。写侧同形。 */ declare const ExitLastSchema: z.ZodObject<{ at: z.ZodString; version: z.ZodString; pid: z.ZodNumber; orphan: z.ZodBoolean; reason: z.ZodString; idleForMs: z.ZodNumber; attached: z.ZodNumber; inflight: z.ZodNumber; lingerMs: z.ZodNumber; orphanedForMs: z.ZodOptional; }, z.core.$strip>; export type ExitLastInfo = z.infer; export declare function exitLastPath(dataRoot: string): string; /** 自退那一刻写留痕(同步;自身绝不抛 —— 留痕写失败不得阻塞停机)。 */ export declare function writeExitLast(dataRoot: string, info: Omit): void; /** boot 读回:在场读回、缺席/坏字节/坏形回 `undefined`(绝不抛 —— 留痕坏了不能挡启动)。 */ export declare function readExitLast(dataRoot: string): ExitLastInfo | undefined; /** 读回并报过之后即清(幂等,缺席零抛):在场 ⇔ **上一次**退出是自退。 */ export declare function clearExitLast(dataRoot: string): void; export {}; //# sourceMappingURL=exit-last.d.ts.map