import { type WindowsNativeStatus } from "./service-platform-windows.js"; export interface WindowsPublishedControlStatus { revision: number; manager: { id: string; version: string; pid: number; }; gateway: { desired: "running" | "stopped"; actual: "starting" | "running" | "stopping" | "stopped" | "failed"; }; } export type WindowsPipeExchange = (pipeName: string, request: Buffer, timeoutMs: number) => Promise; export declare class WindowsHostControlError extends Error { readonly code: string; constructor(code: string); } type WindowsNativeExchangeRunner = (executable: string, args: string[], request: Buffer, timeoutMs: number) => Promise; export declare function windowsNativeHostExecutable(): string; export declare function createWindowsNativeHostExchange(executable?: string, runner?: WindowsNativeExchangeRunner): WindowsPipeExchange; /** 仅承载只读status和服务SID的状态发布;不包含生命周期写操作。 */ export declare class WindowsHostControlClient { private readonly pipeName; private readonly exchange; private readonly timeoutMs; constructor(pipeName: string, exchange?: WindowsPipeExchange, timeoutMs?: number); status(): Promise; publish(control: WindowsPublishedControlStatus): Promise; invalidate(manager: WindowsPublishedControlStatus["manager"], revision: number): Promise; request(method: "GET" | "POST", route: string, body?: unknown): Promise<{ status: number; body: T; }>; private id; private send; } export {}; //# sourceMappingURL=windows-host-control-client.d.ts.map