import { type QualifiedDynamicLoaderMap } from '@intlayer/core/dictionaryManipulator'; import type { Dictionary } from '@intlayer/types/dictionary'; import type { DeclaredLocales, DictionaryKeys, DictionarySelectorForKey, LocalesValues, StrictModeLocaleMap } from '@intlayer/types/module_augmentation'; import { type Readable } from 'svelte/store'; import type { DeepTransformContent } from '../plugins'; /** * Svelte hook for dynamic dictionary loading. * * For a qualified loader map (collection / variant, possibly * combined), only the chunk(s) the selector targets are loaded. For a plain * loader map, the locale chunk is loaded. * * @param dictionaryPromise - Locale-keyed loader map, or a qualified loader map. * @param key - The dictionary key (used for cache namespacing). * @param localeOrSelector - Optional fixed locale or selector. * @returns Readable store with the loaded dictionary content. */ export declare function useDictionaryDynamic = DeclaredLocales>(dictionaryPromise: StrictModeLocaleMap<() => Promise> | QualifiedDynamicLoaderMap, key: K, localeOrSelector?: A): Readable & { isLoading: boolean; error: Error | null; }>;