Public declaration syntax from forge-ts/packages/forge-health/src/lifecycle.ts Original source SHA-256: 5e78896b75c650331cd021c89be288c4112eaf7e690d1bfedb3b3cdc3e3af788 Function bodies and constant values are omitted. This is not the complete implementation. Source line 26 export const LifecycleState /* type inferred in source */; Source line 42 export type LifecycleStateType = (typeof LifecycleState)[keyof typeof LifecycleState]; Source line 86 export function validTransitions(state: LifecycleStateType): readonly LifecycleStateType[]; Source line 98 export function isTerminal(state: LifecycleStateType): boolean; Source line 112 export function isOperational(state: LifecycleStateType): boolean; Source line 123 export interface LifecycleTransition { /** The state before the transition. */ readonly from: LifecycleStateType; /** The state after the transition. */ readonly to: LifecycleStateType; /** The UTC timestamp when the transition occurred. */ readonly timestamp: Timestamp; } Source line 137 export class LifecycleError extends Error { readonly from: LifecycleStateType; readonly to: LifecycleStateType; constructor(from: LifecycleStateType, to: LifecycleStateType, reason: string); } Source line 174 export class LifecycleManager { constructor(); get state(): LifecycleStateType; get history(): readonly LifecycleTransition[]; transition(target: LifecycleStateType): LifecycleTransition; canTransitionTo(target: LifecycleStateType): boolean; validTransitions(): readonly LifecycleStateType[]; }