import { TFatString } from "./string"; import { NextCache } from "./nextCache"; declare type TDictionaryType = { [key: string]: TFatString | TDictionaryRoot; } & { $$dict?: never; }; /** * @category Dictionary */ export declare type TDictionaryMeta = { [key: string]: string; }; /** * The root of a translation dictionary * * @category Dictionary */ export declare type TDictionaryRoot = { /** the translations */ $$dict: TDictionaryType; /** optional metadata - ignored by _Interminimal_ */ $$meta?: TDictionaryMeta; }; /** * Dictionary type guard: checks that an object looks like a dictionary. * Specifically does it have a `$$dict` key? * * @param d maybe a dictionary * @returns true if `d` looks like a dictionary */ export declare const isDictionary: (d: object) => d is TDictionaryRoot; /** * @category Dictionary */ export declare const checkDictionary: (dictionary: object) => void; /** * @category Dictionary */ export declare const nextDict: NextCache; /** * @category Dictionary */ export declare const rootDict: TDictionaryRoot; export {};