import type { Tab } from "#types/document.types"; export interface VocabularyEntry { readonly code: string | null; readonly kind: string; readonly layer: string | null; readonly phrase: string; readonly prose: boolean; readonly ref: string; } export interface PageContent { readonly page: string; readonly tabs: readonly Tab[]; } export interface PhraseMatch { readonly end: number; readonly entry: VocabularyEntry; readonly start: number; } export interface PhraseIndex { readonly byFirstWord: ReadonlyMap; }