import React from 'react';
import { type Locale, type Messages, type Translator } from '@eternalheart/file-preview-core';
export interface LocaleContextValue {
    locale: Locale;
    t: Translator;
}
export interface LocaleProviderProps {
    /** 当前语言，默认 'zh-CN' */
    locale?: Locale;
    /** 用户自定义字典，浅合并到内置字典之上 */
    messages?: Partial<Record<Locale, Partial<Messages>>>;
    children: React.ReactNode;
}
export declare const LocaleProvider: React.FC<LocaleProviderProps>;
/**
 * 获取翻译函数。任意位置调用都安全：
 * - 在 LocaleProvider 下 → 用 provider 提供的 translator
 * - 否则 → 回落到 zh-CN 兜底 translator
 */
export declare function useTranslator(): Translator;
/**
 * 获取当前 locale。在 Provider 之外返回 'zh-CN'。
 */
export declare function useLocale(): Locale;
//# sourceMappingURL=LocaleContext.d.ts.map