import { AgentPubKey } from '@holochain/client'; export interface AgentSelection { left: boolean; position: string; characterCount: number; } export type TextEditorState = { text: string[]; }; export type TextEditorEphemeralState = { [key: string]: AgentSelection; }; export declare const textEditorGrammar: { initialState(): { text: never[]; }; changes(myPubKey: AgentPubKey, state: TextEditorState, cursors: TextEditorEphemeralState): { insert(from: number, text: string): void; delete(position: number, characterCount: number): void; changeSelection(from: number, characterCount: number): void; }; };