/** * Convert a snake_case string to camelCase. * @example "account_id" -> "accountId", "created_at" -> "createdAt" */ export declare function snakeToCamelString(s: string): string; /** * Recursively convert an object's keys from snake_case to camelCase. * Arrays and nested objects are traversed; primitives, Date, and RegExp are returned as-is. */ export declare function snakeToCamelObjectDeep(obj: T): SnakeToCamel; /** * Convert a snake_case string to camelCase at the type level. */ export type SnakeToCamelString = S extends `${infer A}_${infer B}` ? `${A}${Capitalize>}` : S; /** * Recursively convert an object type's keys from snake_case to camelCase. */ export type SnakeToCamel = T extends object ? T extends Array ? Array> : T extends Date | RegExp | Function ? T : { [K in keyof T as K extends string ? SnakeToCamelString : K]: SnakeToCamel; } : T; //# sourceMappingURL=snake-to-camel.d.ts.map