/** 守护服务定义与跨平台命令行渲染。 */ export declare const SERVICE_NAME = "onebots-gateway"; export declare const LAUNCHD_LABEL = "com.onebots.onebots-gateway"; export type ServiceScope = "user" | "system"; export type ServiceRuntimeCommand = "run" | "preflight"; export interface ServiceSpec { scope: ServiceScope; configPath: string; adapters: string[]; protocols: string[]; applications?: string[]; nodePath: string; binPath: string; workingDirectory: string; } export declare function buildServiceArgs(spec: ServiceSpec, command?: ServiceRuntimeCommand): string[]; export declare function renderSystemdUnit(spec: ServiceSpec): string; /** 仅用于逐字节识别已经写盘的历史定义,不得用于新安装或回退。 */ export declare function renderHistoricalSystemdUnit(spec: ServiceSpec): string; export declare function renderLaunchdPlist(spec: ServiceSpec, stdoutPath: string, stderrPath: string): string; export declare function renderWindowsCommand(spec: ServiceSpec): string; export declare function renderWindowsScriptOptions(spec: ServiceSpec): string; /** 生成带 5 秒失败重启策略的 Windows 用户计划任务。 */ export declare function renderWindowsTaskXml(runnerPath: string): string; //# sourceMappingURL=service-definition.d.ts.map