import type { GenerationInstallOperation } from "./installation/generation-installer.js"; import { type ManagerServicePhase } from "./manager-service-journal.js"; import type { WindowsServiceSecurityStage } from "./windows-service-security.js"; export type ManagerBootstrapCandidateErrorCode = NonNullable | "CANDIDATE_READ_FAILED" | "CANDIDATE_SECURITY_FAILED" | "CANDIDATE_IDENTITY_FAILED" | "CANDIDATE_BINDING_FAILED"; export type ManagerBootstrapPhase = "candidate-preparation" | `candidate-${GenerationInstallOperation["phase"]}` | "candidate-read" | "candidate-security" | "candidate-identity" | "candidate-binding" | "manager-preflight" | "manager-journal" | `manager-${ManagerServicePhase}`; export type ManagerBootstrapErrorCode = ManagerBootstrapCandidateErrorCode | "CANDIDATE_PREPARATION_FAILED" | "MANAGER_PREFLIGHT_FAILED" | "MANAGER_JOURNAL_FAILED" | "MANAGER_CLEANUP_FAILED"; export type ManagerBootstrapSetupPhase = "windows-identity" | "windows-state-security" | "windows-workspace-security" | "service-lock" | "bootstrap-cycle"; export type ManagerBootstrapSetupErrorCode = "WINDOWS_IDENTITY_UNAVAILABLE" | "WINDOWS_STATE_ACL_FAILED" | "WINDOWS_WORKSPACE_ACL_FAILED" | "SERVICE_LOCK_FAILED" | "BOOTSTRAP_CYCLE_FAILED"; /** operationId 产生前的闭合诊断;不携带原始异常、路径或 SID。 */ export declare class ManagerBootstrapSetupError extends Error { readonly bootstrapPhase: ManagerBootstrapSetupPhase; readonly code: ManagerBootstrapSetupErrorCode; readonly securityStage?: WindowsServiceSecurityStage; constructor(bootstrapPhase: ManagerBootstrapSetupPhase, code: ManagerBootstrapSetupErrorCode, securityStage?: WindowsServiceSecurityStage); } export declare class ManagerBootstrapStageError extends Error { readonly operationId: string; readonly bootstrapPhase: ManagerBootstrapPhase; readonly code: ManagerBootstrapErrorCode; constructor(operationId: string, bootstrapPhase: ManagerBootstrapPhase, code: ManagerBootstrapErrorCode); } /** 仅读取当前稳定 ID 的 manager journal;拒绝链接、超限或不闭合记录。 */ export declare function deriveManagerBootstrapStageError(stateDirectory: string, operationId: string, bootstrapPhase: ManagerBootstrapPhase): ManagerBootstrapStageError; export declare class ManagerBootstrapCandidateError extends Error { readonly operationId: string; readonly phase: GenerationInstallOperation["phase"]; readonly code: ManagerBootstrapCandidateErrorCode; readonly securityStage?: WindowsServiceSecurityStage; constructor(operationId: string, phase: GenerationInstallOperation["phase"], code: ManagerBootstrapCandidateErrorCode, securityStage?: WindowsServiceSecurityStage); } //# sourceMappingURL=manager-bootstrap-error.d.ts.map