import type { SkillBundleLocation, SkillDaemonHandle } from './types.js'; export interface SpawnSkillParams { location: SkillBundleLocation; env_overrides?: Record; start_daemon?: boolean; /** 子进程 stdout/stderr 写入的日志文件(可选,默认继承 parent stdout)*/ log_file?: string; } export declare function spawnSkill(params: SpawnSkillParams): Promise; export interface ForegroundSkillSession { handle: SkillDaemonHandle; wait: () => Promise; stop: () => void; } /** * Start a skill in foreground mode for OS supervisors. * * The parent `skillfm-local run-skill --foreground` process remains * alive while the server child is alive, so systemd/launchd can own restart * policy instead of relying on a detached child that outlives its launcher. */ export declare function spawnSkillForeground(params: SpawnSkillParams): Promise; /** Poll GET {endpoint}/health 直到 200 或超时 */ export declare function waitForHealthy(endpoint: string, timeoutMs: number): Promise; /** Kill a running skill process tree. Returns true if kill signal delivered. */ export declare function killSkill(handle: Pick): boolean; //# sourceMappingURL=spawner.d.ts.map