import type { Text } from '../interfaces'; import type { AnyEditor as Editor } from '../interfaces/editor'; export const marks = (editor: Editor): Omit | null => editor.read((state) => state.marks());