@witchcraft/editor
    Preparing search index...

    A selection captured as yjs relative positions plus the selection's jsonID type. Anchored to the document, so it survives content changes above/below. Structurally matches the return type of @tiptap/y-tiptap's getRelativeSelection (upstream does not export a named type for it).

    type RelativeSelection = {
        anchor: Y.RelativePosition | null;
        depth?: number;
        head: Y.RelativePosition | null;
        type: string;
    }
    Index
    anchor: Y.RelativePosition | null
    depth?: number

    Only meaningful for NodeRangeSelection; undefined for every other type.

    head: Y.RelativePosition | null
    type: string

    The selection class's jsonID (e.g. "text", "node", "nodeRange", "all").