import type { EditorState } from './editor-state.js'; /** * Determines whether a lifecycle transition is part of the frozen state graph. * * @param currentState - State currently owned by the editor. * @param nextState - Requested replacement state. * @returns Whether the transition is valid. */ export declare function canTransitionEditorState(currentState: Readonly, nextState: Readonly): boolean; /** * Rejects lifecycle state changes that are not part of the frozen state graph. * * @param currentState - State currently owned by the editor. * @param nextState - Requested replacement state. * @throws Error when the transition violates the lifecycle invariant. */ export declare function assertEditorStateTransition(currentState: Readonly, nextState: Readonly): void;