import { a as LocaleLoader, c as MessageValue, d as ResolveInfo, f as ResolveStatus, g as VerbalyOptions, h as Verbaly, i as KeysOf, l as ParamNames, m as TFunction, n as FlatKeys, o as MessageAt, p as TArgs, r as Formatter, s as MessageTree, t as DictionaryInput, u as Params } from "./types-BTWCYu7Y.cjs"; //#region src/instance.d.ts declare function createVerbaly(options?: VerbalyOptions): Verbaly; //#endregion //#region src/dom.d.ts type RichLink = string | { href: string; target?: string; rel?: string; }; interface BindDomOptions { root?: ParentNode; attribute?: string; richTags?: string[]; richLinks?: Record; } declare function safeHref(href: string): string | undefined; declare function normalizeLink(link: RichLink): { href?: string; target?: string; rel?: string; }; declare function safeAttribute(name: string, value: string): string | undefined; declare const VOID_TAGS: string[]; declare const RICH_TAGS: string[]; declare function bindDom(instance: Verbaly, options?: BindDomOptions): () => void; //#endregion //#region src/locale.d.ts interface ResolveLocaleOptions { supported: string[]; fallback?: string; storageKey?: string | false; path?: string | false; base?: string; } interface LocaleFromPathOptions { supported: string[]; path?: string; base?: string; } declare const LOCALE_STORAGE_KEY = "verbaly-locale"; declare function localeDirection(locale: string): 'ltr' | 'rtl'; declare function localeName(locale: string, displayIn?: string): string; interface LocalePathOptions { supported: string[]; sourceLocale?: string; path?: string; base?: string; } declare function localePath(locale: string, options: LocalePathOptions): string; declare function localeFromPath(options: LocaleFromPathOptions): string | undefined; declare function resolveLocale(options: ResolveLocaleOptions): string; declare function negotiateLocale(header: string | null | undefined, supported: string[], fallback?: string): string; interface RequestLocaleOptions { supported: string[]; cookie?: string | null; header?: string | null; fallback?: string; } declare function resolveRequestLocale(options: RequestLocaleOptions): string; interface SwitchLocaleOptions { cookie?: string | false; maxAge?: number; } declare function switchLocale(instance: Pick, locale: string, options?: SwitchLocaleOptions): Promise; declare function persistLocale(locale: string, storageKey?: string | false): void; //#endregion //#region src/parse.d.ts type MessageNode = { kind: 'text'; value: string; } | { kind: 'hash'; } | ParamNode; interface ParamNode { kind: 'param'; name: string; format?: string; arg?: string; ordinal?: boolean; variants?: [string, MessageNode[]][]; } declare function parse(message: string): MessageNode[]; //#endregion //#region src/flatten.d.ts declare function flatten(tree: MessageTree, prefix?: string, out?: Record): Record; //#endregion //#region src/tags.d.ts type TagNode = string | { name: string; children: TagNode[]; }; declare function parseTags(text: string): TagNode[]; //#endregion export { type BindDomOptions, type DictionaryInput, type FlatKeys, type Formatter, type KeysOf, LOCALE_STORAGE_KEY, type LocaleFromPathOptions, type LocaleLoader, type LocalePathOptions, type MessageAt, type MessageNode, type MessageTree, type MessageValue, type ParamNames, type ParamNode, type Params, RICH_TAGS, type RequestLocaleOptions, type ResolveInfo, type ResolveLocaleOptions, type ResolveStatus, type RichLink, type SwitchLocaleOptions, type TArgs, type TFunction, type TagNode, VOID_TAGS, type Verbaly, type VerbalyOptions, bindDom, createVerbaly, flatten, localeDirection, localeFromPath, localeName, localePath, negotiateLocale, normalizeLink, parse, parseTags, persistLocale, resolveLocale, resolveRequestLocale, safeAttribute, safeHref, switchLocale }; //# sourceMappingURL=index.d.cts.map