/** * Utility type to extract all possible deep keys from a nested object * Used for type-safe translation key access */ export type DeepKeys = T extends Record ? { [K in keyof T]: K extends string ? T[K] extends Record ? `${K}` | `${K}.${DeepKeys}` : `${K}` : never; }[keyof T] : never; /** * Utility type to get the value at a specific deep key path */ export type DeepValue = P extends `${infer K}.${infer Rest}` ? K extends keyof T ? DeepValue : never : P extends keyof T ? T[P] : never; /** * Runtime function to get nested value from object */ export declare function getDeepValue>(obj: T, path: string): unknown; /** * Runtime function to check if a deep key exists in an object */ export declare function hasDeepKey>(obj: T, path: string): boolean; /** * Runtime counterpart to the `DeepKeys` type: collects every leaf-key path of a * nested translation object (dotted, e.g. `form.label.required`). A leaf is any * non-object value (the translation strings); nested objects recurse. Used by * `validatePackageTranslations` to diff locale bundles structurally — two * bundles with the same leaf-key set are key-compatible. */ export declare function collectDeepKeys(obj: Record, prefix?: string): string[];