export interface PersistedOperationProjection { id: string; action: string; status: string; phase?: string; finishedAt?: string; } export type PersistedOperationObserver = (operation: PersistedOperationProjection) => void; /** 可观察性只能读取固定投影;失败不得改变已经持久化的业务结果。 */ export declare function observePersistedOperation(observer: PersistedOperationObserver | undefined, operation: PersistedOperationProjection): void; export declare function observeNamedPersistedOperation(observer: PersistedOperationObserver | undefined, action: string, operation: Omit): void; /** 系统服务 journal 的统一固定投影;调用方不能把私有事务正文传给日志。 */ export declare function observeManagerServiceOperation(observer: PersistedOperationObserver | undefined, operation: { id: string; action: "start" | "stop" | "restart" | "install" | "uninstall" | "upgrade"; status: string; phase: string; }): void; /** 旧服务迁移备份只留在私有 journal,控制日志只能看到迁移状态。 */ export declare function observeServiceMigrationOperation(observer: PersistedOperationObserver | undefined, operation: { id: string; status: string; phase: string; }): void; //# sourceMappingURL=persisted-operation-observer.d.ts.map