import { AttributeMap, TextDocument, type EditorRange } from '@typewriter/document'; import { type Readable } from 'easy-signal'; import { Editor } from './Editor'; export interface EditorStores { active: Readable; doc: Readable; selection: Readable; root: Readable; focus: Readable; updateEditor(editor: Editor): void; } export declare function editorStores(editor: Editor): EditorStores; export declare function derivedEditorStore(editorStore: Readable, defaultValue: T, changeEvents: string[], update: (editor: Editor) => T, checkEquality?: boolean): Readable; export declare function activeStore(editorStore: Readable): Readable; export declare function docStore(editorStore: Readable): Readable; export declare function selectionStore(editorStore: Readable): Readable; export declare function focusStore(editorStore: Readable): Readable; export declare function rootStore(editorStore: Readable): Readable;