/** * Reference Data Loader * * Loads reference vocabulary lists, core lists, and sentences * for AAC metrics analysis. */ import { CoreList, CommonWordsData, SynonymsData } from '../metrics/types'; import { FileAdapter } from '../../../utils/io'; export interface ReferenceDataProvider { loadCoreLists(): Promise; loadCommonWords(): Promise; loadSynonyms(): Promise; loadSentences(): Promise; loadFringe(): Promise; loadBaseWords(): Promise<{ [word: string]: boolean; }>; loadCommonFringe(): Promise; loadAll(): Promise<{ coreLists: CoreList[]; commonWords: CommonWordsData; synonyms: SynonymsData; sentences: string[][]; fringe: string[]; baseWords: { [word: string]: boolean; }; }>; } export declare class ReferenceLoader { private dataDir; private locale; private fileAdapter; constructor(dataDir?: string, locale?: string, fileAdapter?: FileAdapter); /** * Load core vocabulary lists */ loadCoreLists(): Promise; /** * Load common words with baseline effort scores */ loadCommonWords(): Promise; /** * Load synonym mappings */ loadSynonyms(): Promise; /** * Load test sentences */ loadSentences(): Promise; /** * Load fringe vocabulary */ loadFringe(): Promise; /** * Load base words hash map */ loadBaseWords(): Promise<{ [word: string]: boolean; }>; /** * Load common fringe vocabulary * Common words that are NOT in core vocabulary lists * (matching Ruby loader.rb:413-420) */ loadCommonFringe(): Promise; /** * Get all reference data at once */ loadAll(): Promise<{ coreLists: CoreList[]; commonWords: CommonWordsData; synonyms: SynonymsData; sentences: string[][]; fringe: string[]; baseWords: { [word: string]: boolean; }; }>; } /** * Get the default reference data path */ export declare function getReferenceDataPath(fileAdapter?: FileAdapter): string; /** * Check if reference data files exist */ export declare function hasReferenceData(fileAdapter?: FileAdapter): Promise;