/** * Port of NamingHelper.php — case conversion utilities. */ /** Convert camelCase/PascalCase to snake_case. */ export declare function toSnakeCase(value: string): string; /** * Physical FK column name for an owning-side association property. * * The convention is `_id`, but a property already named with * that suffix IS the column — `table_session_id` is what Laravel's `belongsTo` * convention names it and what a legacy table already has. Appending * unconditionally produced `table_session_id_id` (issue #149). */ export declare function toFkColumnName(propertyName: string): string; /** Convert any string to PascalCase. */ export declare function toPascalCase(value: string): string; /** Convert any string to camelCase. */ export declare function toCamelCase(value: string): string; /** * Pluralize a word (simple English rules). * Handles common cases: -y → -ies, -s/-sh/-ch/-x/-z → -es, default → -s */ export declare function pluralize(value: string): string; /** * Singularize a word (simple English rules — reverse of pluralize). */ export declare function singularize(value: string): string; /** Convert a schema name to a table name (snake_case + pluralized). */ export declare function toTableName(schemaName: string): string; /** * Resolve a displayName from a localized map or string. */ export declare function resolveDisplayName(displayName: string | Record | null | undefined, locale: string, fallback: string): string; /** Build expanded column name from property name and suffix. */ export declare function expandedColumnName(propertyName: string, suffix: string): string;