import { Hyphenator } from './liang.js'; export type { Hyphenator, HyphenatorOptions } from './liang.js'; export { createHyphenator, splitPatternBundle } from './liang.js'; /** A language for which bundled hyphenation patterns exist. */ export type SupportedLanguage = 'en-us' | 'ru'; /** * Lazily build (and cache) a language's {@link Hyphenator}. The patterns module * is dynamically imported the first time a language is requested, so callers * that never hyphenate pay no cold-start cost. * * @param language The language to load. * @returns The cached hyphenator. */ export declare function getHyphenator(language: SupportedLanguage): Promise; /** * Synchronous variant of {@link getHyphenator}: build a {@link Hyphenator} from * already-loaded pattern strings (useful when patterns are bundled or fetched * out-of-band). * * @param language The language (selects the left/right minimums). * @param bundle The pattern and optional exception strings. * @returns The hyphenator. */ export declare function createLanguageHyphenator(language: SupportedLanguage, bundle: { patterns: string; exceptions?: string; }): Hyphenator; /** * Alias of {@link getHyphenator} — load a hyphenator for `language` using the * patterns bundled with this package. * * @param language The language to load. * @returns The hyphenator. */ export declare function loadHyphenator(language: SupportedLanguage): Promise;