import type { LocaleDefinition } from './definitions'; /** * A proxy for LocaleDefinition that marks all properties as required and throws an error when an entry is accessed that is not defined. */ export type LocaleProxy = Readonly<{ [key in keyof LocaleDefinition]-?: LocaleProxyCategory; }>; type LocaleProxyCategory = Readonly<{ [key in keyof T]-?: LocaleProxyEntry; }>; type LocaleProxyEntry = unknown extends T ? T : Readonly>; /** * Creates a proxy for LocaleDefinition that throws an error if an undefined property is accessed. * * @param locale The locale definition to create the proxy for. */ export declare function createLocaleProxy(locale: LocaleDefinition): LocaleProxy; /** * Checks that the value is not null or undefined and throws an error if it is. * * @param value The value to check. * @param path The path to the locale data. */ export declare function assertLocaleData(value: T, ...path: string[]): asserts value is NonNullable; export {};