import type { ServiceSpec } from "./service-definition.js"; import { LEGACY_WINDOWS_SYSTEM_SERVICE_ID } from "./service-migration-windows-legacy-contract.js"; export interface LegacyWindowsScmConfiguration { serviceType: number; startType: number; errorControl: number; binaryPath: string; loadOrderGroup: string; tagId: number; dependencies: string[]; account: string; displayName: string; description: string; sidType: number; delayedAutoStart: boolean; } export interface LegacyWindowsScmInspection { schemaVersion: 1; serviceName: typeof LEGACY_WINDOWS_SYSTEM_SERVICE_ID; loaded: true; restorationReady: false; state: "running" | "stopped"; configuration: LegacyWindowsScmConfiguration; security: string; process: { pid: number; created: string; image: string; } | null; } export interface LegacyWindowsScmArtifact { path: string; size: number; sha256: string; } export interface LegacyWindowsScmSnapshot { schemaVersion: 1; operationId: string; spec: ServiceSpec; stateDirectory: string; wrapperPath: string; inspection: LegacyWindowsScmInspection; files: { definition: LegacyWindowsScmArtifact; executable: LegacyWindowsScmArtifact; runner: LegacyWindowsScmArtifact; }; digest: string; } /** 只允许无需恢复账户密码的三个内置主体;虚拟、域、gMSA 与自定义账户均不推断安全。 */ export declare function isRestorableLegacyWindowsAccount(account: string): boolean; export declare function parseLegacyWindowsScmInspection(input: unknown): LegacyWindowsScmInspection; /** 解析与摘要只证明绑定一致,不证明工件可恢复、子进程退出或允许重放外部效果。 */ export declare function parseLegacyWindowsScmSnapshot(input: unknown): LegacyWindowsScmSnapshot; export declare function legacyWindowsScmSnapshotDigest(value: Omit): string; //# sourceMappingURL=service-migration-windows-scm-snapshot.d.ts.map