import { S as parse, _ as Verbaly, a as Formatter, b as MessageNode, c as MessageAt, d as ParamNames, f as Params, g as TFunction, h as TArgs, i as FormatInfo, l as MessageTree, m as ResolveStatus, n as DictionaryInput, o as KeysOf, p as ResolveInfo, r as FlatKeys, s as LocaleLoader, t as AddMessagesOptions, u as MessageValue, v as VerbalyOptions, x as ParamNode, y as IcuParser } from "./types-BFlL6yDe.js"; //#region src/instance.d.ts export 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; } export declare function safeHref(href: string): string | undefined; export declare function normalizeLink(link: RichLink): { href?: string; target?: string; rel?: string; }; export declare function safeAttribute(name: string, value: string): string | undefined; export declare const VOID_TAGS: string[]; export declare const RICH_TAGS: string[]; export declare const CATALOG_SCRIPT = "data-verbaly-catalog"; export declare function inlineMessages(root?: ParentNode): Record | undefined; export 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; } export declare const LOCALE_STORAGE_KEY = "verbaly-locale"; export declare function localeDirection(locale: string): 'ltr' | 'rtl'; export declare function localeName(locale: string, displayIn?: string): string; type Routing = 'prefix-except-source' | 'no-prefix' | 'prefix-all'; interface LocalePathBase { supported: string[]; path?: string; base?: string; } type LocalePathOptions = LocalePathBase & ({ routing?: 'prefix-except-source'; sourceLocale: string; } | { routing: 'no-prefix' | 'prefix-all'; sourceLocale?: string; }); export declare function localePath(locale: string, options: LocalePathOptions): string; export declare function localeFromPath(options: LocaleFromPathOptions): string | undefined; interface StripLocalePathOptions { supported: string[]; path?: string; base?: string; } export declare function stripLocalePath(options: StripLocalePathOptions): string; interface AlternateLink { hreflang: string; href: string; } interface AlternateLinksOptions { supported: string[]; sourceLocale: string; path: string; routing?: Routing; base?: string; baseUrl?: string; } export declare function alternateLinks(options: AlternateLinksOptions): AlternateLink[]; export declare function resolveLocale(options: ResolveLocaleOptions): string; export declare function negotiateLocale(header: string | null | undefined, supported: string[], fallback?: string): string; interface RequestLocaleOptions { supported: string[]; path?: string | null; routing?: Routing; base?: string; cookie?: string | null; header?: string | null; fallback?: string; } export declare function resolveRequestLocale(options: RequestLocaleOptions): string; interface SwitchLocaleOptions { cookie?: string | false; storageKey?: string | false; maxAge?: number; routing?: Routing; supported?: string[]; sourceLocale?: string; base?: string; navigate?: (path: string) => void | Promise; } export declare function switchLocale(instance: Pick, locale: string, options?: SwitchLocaleOptions): Promise; export declare function persistLocale(locale: string, storageKey?: string | false): void; //#endregion //#region src/icu.d.ts export declare function parseIcu(message: string): MessageNode[]; //#endregion //#region src/relative.d.ts export declare const relativeFormatter: Formatter; //#endregion //#region src/flatten.d.ts export declare function flatten(tree: MessageTree, prefix?: string, out?: Record): Record; //#endregion //#region src/tags.d.ts type TagNode = string | { name: string; children: TagNode[]; }; export declare function parseTags(text: string): TagNode[]; //#endregion //#region src/warn.d.ts export declare function warnOnce(message: string): void; //#endregion export { type AddMessagesOptions, type AlternateLink, type AlternateLinksOptions, type BindDomOptions, type DictionaryInput, type FlatKeys, type FormatInfo, type Formatter, type IcuParser, type KeysOf, type LocaleFromPathOptions, type LocaleLoader, type LocalePathOptions, type MessageAt, type MessageNode, type MessageTree, type MessageValue, type ParamNames, type ParamNode, type Params, type RequestLocaleOptions, type ResolveInfo, type ResolveLocaleOptions, type ResolveStatus, type RichLink, type Routing, type StripLocalePathOptions, type SwitchLocaleOptions, type TArgs, type TFunction, type TagNode, type Verbaly, type VerbalyOptions, parse }; //# sourceMappingURL=index.d.ts.map