/** * TemplateHelpers — Code Generation Utilities * * Pure string manipulation helpers for the code emitter. * Zero runtime dependencies. * * @module */ /** * Convert a camelCase or PascalCase string to snake_case. * * @example * toSnakeCase('getPetById') → 'get_pet_by_id' * toSnakeCase('findPetsByTags') → 'find_pets_by_tags' * toSnakeCase('addPet') → 'add_pet' */ export declare function toSnakeCase(str: string): string; /** * Convert a string to PascalCase. * * @example * toPascalCase('pet') → 'Pet' * toPascalCase('user-account') → 'UserAccount' * toPascalCase('find_pets') → 'FindPets' */ export declare function toPascalCase(str: string): string; /** * Convert a string to camelCase. * * @example * toCamelCase('pet_store') → 'petStore' * toCamelCase('user-name') → 'userName' */ export declare function toCamelCase(str: string): string; /** * Indent every line of a string by the specified number of spaces. */ export declare function indent(code: string, spaces: number): string; /** * Escape a string for use inside single-quoted TypeScript literals. */ export declare function escapeTs(str: string): string; /** * Build a URL template expression for fetch calls. * Replaces OpenAPI `{param}` with `${args.param}`. * * @example * buildUrlTemplate('/pet/{petId}') → '`${ctx.baseUrl}/pet/${args.petId}`' */ export declare function buildUrlTemplate(path: string, baseUrlExpr?: string): string; /** * Generate the Schema (Model) file path for a tag. * @example 'pet' → 'models/pet.schema.ts' */ export declare function schemaFileName(tag: string): string; /** * Generate the Presenter (View) file path for a tag. * @example 'pet' → 'views/pet.presenter.ts' */ export declare function presenterFileName(tag: string): string; /** * Generate the Tool file path for a tag. * @example 'pet' → 'agents/pet.tool.ts' */ export declare function toolFileName(tag: string): string; //# sourceMappingURL=TemplateHelpers.d.ts.map