export type ProcessState = 'pending' | 'starting' | 'ready' | 'running' | 'finished' | 'stopping' | 'stopped' | 'failed'; export type LifecycleEvent = { kind: 'start'; } | { kind: 'ready'; } | { kind: 'mark-running'; } | { kind: 'mark-finished'; } | { kind: 'stop-requested'; } | { kind: 'exited'; expected: boolean; code: number | null; } | { kind: 'fail'; }; export declare class IllegalTransitionError extends Error { readonly from: ProcessState; readonly event: LifecycleEvent; constructor(from: ProcessState, event: LifecycleEvent); } export declare function transition(state: ProcessState, event: LifecycleEvent): ProcessState; export declare function isTerminal(state: ProcessState): boolean; export declare function isActive(state: ProcessState): boolean; /** True when the process has successfully reached a dependency-satisfying state. */ export declare function isReadyOrDone(state: ProcessState): boolean; //# sourceMappingURL=lifecycle.d.ts.map