export type RuntimeOperation = "idle" | "configuration_reload" | "account_configuration" | "account_lifecycle" | "unknown"; export type ActiveRuntimeOperation = Exclude; export interface RuntimeOperationHost { isReloading: boolean; runtimeOperation?: RuntimeOperation; readonly runtimeConfigurationInProgress?: boolean; } export interface RuntimeOperationLease { readonly operation: ActiveRuntimeOperation; release(): void; } /** * 原子取得会撤销 readiness 的运行态租约。 * * release 幂等,并用私有 token 防止过期释放误清理后续租约。调用方必须在取得租约后 * 立即进入 try/finally,确保同步前置步骤与异步操作的全部失败路径都能恢复 readiness。 */ export declare function acquireRuntimeOperation(host: RuntimeOperationHost, operation: ActiveRuntimeOperation, conflictError: (active: RuntimeOperation) => Error): RuntimeOperationLease;