import type { TFunction, TOptions } from '@redocly/theme/core/types'; /** * Wraps a raw i18next `t`-like function (`useTranslate`'s `i18next.t`, or a * build-time `instance.getFixedT(locale)`) with the shared value/defaultValue/options * resolution used across the client and build-time translate paths. * * @param rawT - The underlying i18next translate function to resolve keys against. * @returns A `TFunction` that resolves `value` via `rawT`, falling back to * `defaultValue` (when passed as the second argument or via `options.defaultValue`) * and then to `value` itself when the key is untranslated. * * @example * ```ts * const translate = createTranslate(i18next.t); * translate('greeting.hello', 'Hello'); // translated string, or 'Hello' if missing * ``` */ export declare function createTranslate(rawT: (key: string, opts?: TOptions) => string): TFunction; //# sourceMappingURL=create-translate.d.ts.map