import type { GatewayControllerState } from "./control/gateway-controller.js"; import { WindowsHostControlClient, type WindowsPipeExchange, type WindowsPublishedControlStatus } from "./windows-host-control-client.js"; interface WindowsStatusClient { status(): ReturnType; publish(control: WindowsPublishedControlStatus): ReturnType; invalidate(manager: WindowsPublishedControlStatus["manager"], revision: number): ReturnType; } export interface WindowsPublisherFailure { phase: "publish" | "invalidate"; code: string; } interface WindowsPublisherOptions { nativeExchange?: WindowsPipeExchange; onFailure?: (failure: WindowsPublisherFailure) => void; } /** 将已持久化的 manager/gateway 状态串行发布给受保护的原生宿主。 */ export declare class WindowsManagerStatusPublisher { private readonly manager; private readonly options; private queue; private revision; private invalidated; private readonly client; constructor(pipeName: string, manager: WindowsPublishedControlStatus["manager"], client?: WindowsStatusClient, options?: WindowsPublisherOptions); publish(gateway: Pick): Promise; confirm(gateway: Pick): Promise; private enqueuePublish; invalidate(): Promise; flush(): Promise; private nextRevision; private assertPublished; private reportFailure; } /** 网关写操作只有在原生宿主确认最终状态后才可向调用方返回。 */ export declare function completeWindowsGatewayOperation(operation: () => Promise, status: () => Pick, publisher: WindowsManagerStatusPublisher | undefined): Promise; export {}; //# sourceMappingURL=windows-manager-status-publisher.d.ts.map