/** * @license * Copyright 2026 Qwen Team * SPDX-License-Identifier: Apache-2.0 */ export interface DaemonIdentity { pid: number; instanceNonce: string; } export declare class DaemonStopMarkerError extends Error { constructor(cause?: unknown); } /** Missing records never mean "stopped": only the exact daemon generation does. */ export declare function readDaemonStopMarker(discoveryPath: string, identity: DaemonIdentity): Promise; /** Persist intentional shutdown before unpublishing discovery or closing sockets. */ export declare function writeDaemonStopMarker(discoveryPath: string, identity: DaemonIdentity): Promise;