///
import { SpellingDictionary } from './SpellingDictionary';
import { ReplaceMap } from '../Settings';
import { Stats } from 'fs-extra';
export interface LoadOptions {
type?: LoaderType;
repMap?: ReplaceMap;
useCompounds?: boolean;
}
export declare type LoaderType = keyof Loaders;
export declare type Loader = (filename: string, options: LoadOptions) => Promise;
export interface Loaders {
S: Loader;
C: Loader;
T: Loader;
default: Loader;
[index: string]: Loader | undefined;
}
interface CacheEntry {
uri: string;
options: LoadOptions;
ts: number;
state: Promise;
dictionary: Promise;
}
export declare function loadDictionary(uri: string, options: LoadOptions): Promise;
export declare function refreshCacheEntries(maxAge?: number, now?: number): Promise;
declare function refreshEntry(entry: CacheEntry, maxAge?: number, now?: number): Promise;
declare function loadEntry(uri: string, options: LoadOptions, now?: number): CacheEntry;
declare function load(uri: string, options: LoadOptions): Promise;
export declare const testing: {
dictionaryCache: Map;
refreshEntry: typeof refreshEntry;
loadEntry: typeof loadEntry;
load: typeof load;
};
export {};