import { type ServiceSpec } from "./service-definition.js"; /** 来自历史 node-windows 实现(425515a5 的父提交),不是新 manager SCM 名称。 */ export declare const LEGACY_WINDOWS_SYSTEM_SERVICE_ID = "onebotsgateway.exe"; export interface LegacyWindowsSystemFiles { definition: string; executable: string; runner: string; } /** 仅历史证据路径,不创建 runner、安装 node-windows 或注册旧服务。 */ export declare function legacyWindowsSystemFiles(spec: ServiceSpec, stateDirectory: string): LegacyWindowsSystemFiles; /** 原历史生成器的精确字节;只能用于识别/备份,不能作为当前包的执行入口。 */ export declare function historicalWindowsSystemRunner(spec: ServiceSpec): string; /** 校验旧 WinSW 扁平 XML 全契约,含 node-windows wrapper 路径和重启参数。 */ export declare function validateLegacyWindowsSystemXml(xml: string, spec: ServiceSpec, stateDirectory: string, wrapperPath: string): boolean; /** 从已知历史 WinSW 定义中提取固定第二个 argument,并再次用完整契约核验。 */ export declare function legacyWindowsWrapperPath(xml: string, spec: ServiceSpec, stateDirectory: string): string; //# sourceMappingURL=service-migration-windows-legacy-contract.d.ts.map