import { Annotation, AnnotatorState, FormatAdapter } from '../model'; import { UndoStack } from '../state'; import { LifecycleEvents } from './LifecycleEvents'; export type Lifecycle = ReturnType>; export declare const createLifecycleObserver: (state: AnnotatorState, undoStack: UndoStack, adapter?: FormatAdapter, autoSave?: boolean) => { on: (event: T, callback: LifecycleEvents[T]) => void; off: >(event: T, callback: LifecycleEvents[T]) => void; emit: (event: keyof LifecycleEvents, arg0: I | I[], arg1?: I | PointerEvent) => void; }; //# sourceMappingURL=Lifecycle.d.ts.map