import type { BinaryData } from "./types"; /** @internal Wire up the WASM bindings after init(). */ export declare function _setHyphenationBindings(load: (lang: string, data: Uint8Array) => void, has: (lang: string) => boolean): void; /** * Load hyphenation trie data for a language into the WASM module. * * Must be called after {@link init}. Typically you'll use * {@link loadHyphenationLangs} instead, which handles fetching. * * @param lang - ISO 639-1 language code (e.g. `"en"`, `"de"`) * @param data - The raw trie binary (contents of `.bin`) */ export declare function loadHyphenationData(lang: string, data: BinaryData): void; /** * Check if hyphenation data has been loaded for a language. * * @param lang - ISO 639-1 language code */ export declare function hasHyphenationData(lang: string): boolean; /** * Fetch and load hyphenation trie data for one or more languages. * * Each language's trie is fetched from `${baseUrl}/${lang}.bin` and * loaded into the WASM module. Fetches are deduplicated — calling * this multiple times for the same language is safe and cheap. * * @param langs - Array of ISO 639-1 language codes * @param options.baseUrl - Base URL for `.bin` files. Defaults to * the `hyphenation/` subdirectory next to the WASM module. * * @example * ```ts * await init(); * await loadHyphenationLangs(["en", "de"]); * // Now layoutParagraph(..., { hyphenate: true, lang: "de" }) works * ``` */ export declare function loadHyphenationLangs(langs: string[], options?: { baseUrl?: string; }): Promise; //# sourceMappingURL=hyphenation.d.ts.map