import type { DeclaredLocales, DictionaryKeys, DictionaryRegistryResult, DictionarySelectorForKey, ExtractSelectorLocale, LocalesValues } from '@intlayer/types/module_augmentation'; import { type Readable } from 'svelte/store'; import type { DeepTransformContent } from '../plugins'; /** * Svelte hook that picks one dictionary by its key and returns its reactive content. * * It returns a readable store that reactively updates whenever the locale changes. * * The second argument is either a locale or a selector object: * - `{ item: 2 }` — collection item (omit `item` to get every item as array) * - `{ variant: 'black-friday' }` — named variant (omit for the `default` one) * - `locale` composes with any selector and overrides the context locale * * @param key - The unique key of the dictionary to retrieve. * @param localeOrSelector - Optional locale or selector. * @returns A readable store with the transformed dictionary content. * * @example * ```svelte * * *
{$content.myField.value}
* ``` */ export declare const useIntlayer: = DeclaredLocales>(key: T, localeOrSelector?: A) => Readable, ExtractSelectorLocale>>;