import { type AuthErrorCode } from "@orcestr/auth-core"; import { type ReactNode } from "react"; export type AuthLocale = "en" | "ru"; export type AuthMessages = { common: { email: string; password: string; error: string; backToLogin: string; loadingMethods: string; retry: string; }; login: { username: string; submit: string; submitting: string; forgot: string; register: string; }; register: { username: string; firstName: string; lastName: string; submit: string; submitting: string; login: string; }; forgot: { submit: string; submitting: string; sent: string; }; reset: { code: string; newPassword: string; submit: string; submitting: string; success: string; }; verify: { code: string; submit: string; submitting: string; resend: string; resending: string; }; change: { currentPassword: string; newPassword: string; repeatPassword: string; submit: string; submitting: string; mismatch: string; }; oauth: { signInWith: string; providers: Record<"github" | "google" | "yandex", string>; }; legal: { title: string; description: string; acceptPrefix: string; version: string; optional: string; confirm: string; cancel: string; }; errors: Record; }; export type AuthMessageOverrides = { [K in keyof AuthMessages]?: Partial; }; export declare const authMessages: Record; export declare function AuthI18nProvider({ locale, overrides, children, }: { locale: AuthLocale; overrides?: AuthMessageOverrides; children: ReactNode; }): import("react/jsx-runtime").JSX.Element; export declare function useAuthMessages(): AuthMessages; export declare function resolveAuthErrorMessage(error: unknown, messages: AuthMessages, fallback?: string): string; //# sourceMappingURL=i18n.d.ts.map