import type z from 'zod'; export type LocaleAdapterFn = (text: string, ...args: any[]) => string; export type LocaleCurrentAdapterFn = () => string; export type ZodLocaleError = () => { localeError: z.core.$ZodErrorMap; }; export type ZodLocaleErrors = Record; export type ZodLocaleErrorsInstance = Record; export declare function translateError(localeAdapterFn: LocaleAdapterFn, key: string, scope?: object): string; export declare function toRaw(observed: any): any;