/** * Name Transformer * * Transforms module names to various case conventions * needed for code generation. */ import { NameTransforms } from "../types/template-data.interface"; /** * Transform a module name to all necessary case conventions * * @param moduleName - PascalCase module name (e.g., "Comment") * @param endpoint - Optional kebab-case plural endpoint (e.g., "comments"), derived from moduleName if not provided * @returns All name transformations */ export declare function transformNames(moduleName: string, endpoint?: string): NameTransforms; /** * Convert PascalCase to camelCase * * @param str - PascalCase string * @returns camelCase string */ export declare function toCamelCase(str: string): string; /** * Convert PascalCase to kebab-case * * @param str - PascalCase string * @returns kebab-case string */ export declare function toKebabCase(str: string): string; /** * Convert string to PascalCase * * @param str - Any case string * @returns PascalCase string */ export declare function toPascalCase(str: string): string; /** * Convert PascalCase/camelCase to Title Case with spaces * e.g., "firstName" -> "First Name", "UserProfile" -> "User Profile" * * @param str - PascalCase or camelCase string * @returns Title Case string with spaces */ export declare function toTitleCase(str: string): string; /** * Simple pluralization * Note: This is a basic implementation. For production, consider using a library like 'pluralize' * * @param str - Singular form * @returns Plural form */ export declare function pluralize(str: string): string; /** * Simple singularization (reverse of pluralize) * * @param str - Plural form * @returns Singular form */ export declare function singularize(str: string): string; //# sourceMappingURL=name-transformer.d.ts.map