import type { LocalIpcEndpointKind } from "./platform/ipc.js"; export declare const PROCESS_STATE_SCHEMA_VERSION = 1; export interface EngineProcessState { pid: number; instanceId: string; startedAt: string; platformStartMarker?: string; endpoint: string; endpointKind: LocalIpcEndpointKind; controlToken: string; version: string; runtimeMode?: string; runtimePath: string; nodePath: string; logFile?: string; sourceDirectory?: string; logLevel?: string; debugAgentStdout?: string; } export interface NiuBotProcessState { schemaVersion: typeof PROCESS_STATE_SCHEMA_VERSION; processes: { engine: EngineProcessState; }; } export declare function getProcessStatePath(niubotHome: string): string; export declare function readProcessState(niubotHome: string): NiuBotProcessState | undefined; export declare function writeProcessState(niubotHome: string, engine: EngineProcessState): void; export declare function clearProcessState(niubotHome: string, expectedInstanceId?: string): boolean;