/** * Lifecycle phase machine — see workbench-model.md §5. * * 8 个 phase 严格递增,无跳跃: * init → bind → setup → ready → drain → cleanup → destroy → quit * * @internal */ export type LifecyclePhase = 'init' | 'bind' | 'setup' | 'ready' | 'drain' | 'cleanup' | 'destroy' | 'quit'; export declare class LifecyclePhaseError extends Error { readonly from: LifecyclePhase; readonly to: LifecyclePhase; constructor(from: LifecyclePhase, to: LifecyclePhase); } export declare function phaseOrder(p: LifecyclePhase): number; export declare class LifecycleManager { current: LifecyclePhase; enter(to: LifecyclePhase): void; assertAtLeast(p: LifecyclePhase): void; /** * Abnormal-path setter:setup throw / 紧急 shutdown 跳过中间 phase 直达 * 指定 teardown phase。不做顺序校验,仅 framework 内部使用。 * * @internal */ _force(to: LifecyclePhase): void; } //# sourceMappingURL=lifecycle-manager.d.ts.map